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

Dynamic email backlink #8

Merged
merged 2 commits into from
Jan 15, 2024
Merged

Conversation

samarth52
Copy link
Contributor

This PR updates the backlink used in the email for friend invites. The backlink is provided by the requester.

@samarth52 samarth52 changed the base branch from main to bog-changes-s23-merged January 15, 2024 22:52
@samarth52 samarth52 merged commit d71c1be into bog-changes-s23-merged Jan 15, 2024
samarth52 added a commit to gt-scheduler/website that referenced this pull request Jan 16, 2024
### Summary

Currently, GitHub Pages does not allow for dynamic links such as
`https://www.gt-scheduler.org/invite/:id`. Moreso, if you go to a PR
preview, such as `https://www.gt-scheduler.org/pr-preview/pr-253/`, it
auto redirects the site to `https://www.gt-scheduler.org`.

This PR converts the router to a [Hash
Router](https://reactrouter.com/en/main/router-components/hash-router)
which is compatible with GitHub Pages. This PR also updates the create
friend Firebase function such that it accepts a backlink for the email
invite (related PR:
gt-scheduler/firebase-conf#8).

Note: Hash Routers are deprecated, and GitHub Pages deployments are not
ideal for SPAs. I would recommend switching our tech stack to Next.js
and deployments to Netlify.
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

Successfully merging this pull request may close these issues.

1 participant