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

Fixes PR Preview Link Auto Redirecting #254

Merged
merged 9 commits into from
Jan 16, 2024

Conversation

samarth52
Copy link
Contributor

@samarth52 samarth52 commented Oct 21, 2023

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 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.

@github-actions
Copy link

github-actions bot commented Oct 21, 2023

PR Preview Action v1.4.6
🚀 Deployed preview to https://gt-scheduler.github.io/website/pr-preview/pr-254/
on branch gh-pages at 2024-01-15 22:47 UTC

@samarth52 samarth52 merged commit f6435ec into bog-changes-s23-merged Jan 16, 2024
3 checks passed
@samarth52 samarth52 deleted the pr-preview-auto-redirect branch January 16, 2024 17:43
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