Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a redirect link for individual events with proper OpenGraph #48

Open
j-hariharan opened this issue Dec 30, 2024 · 0 comments
Open
Assignees

Comments

@j-hariharan
Copy link
Contributor

The goal is to send a link, currently /events#event_id along with the spam for each event. This works currently by simply opening the modal for the correct event on the events page. But since the event_id is in the "hash" part of the URL, it is not accessible in the generateMetadata() function in NextJS which is responsible for adding openGraph metadata to the link, leading to good display in WhatsApp messages. This has been used in the blogs pages.

Since we cannot currently achieve this for events, we would like to make a separate /events/event-slug (using slug for all the same reasons as #47) page which exports a good OpenGraph and immediately redirects to the existing /events#event_id link.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants