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

Deep linking into front-end routes not working as expected #1

Open
humphd opened this issue Dec 20, 2020 · 0 comments
Open

Deep linking into front-end routes not working as expected #1

humphd opened this issue Dec 20, 2020 · 0 comments
Labels
begin Issues related to hosting on Begin.com bug Something isn't working help wanted Extra attention is needed next.js Issues related to Next.js

Comments

@humphd
Copy link
Owner

humphd commented Dec 20, 2020

The app has the following files:

/index.html
/map/index.html
/data/index.html
/about/index.html

If you navigate to / you are dropped into the "home" page, and Next.js' router takes over: navigating to /map will happen client side.

Let's say I'm on https://www.snowyowls.ca/map/?region=CA-ON and I want to share this link with a friend. When they load that, they will still end-up on the home page, and the URL will be wrong.

I'm not sure if this is related to arc's spa static asset option, a bug in next's router, or something I'm doing incorrectly.

@humphd humphd added begin Issues related to hosting on Begin.com bug Something isn't working help wanted Extra attention is needed next.js Issues related to Next.js labels Dec 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
begin Issues related to hosting on Begin.com bug Something isn't working help wanted Extra attention is needed next.js Issues related to Next.js
Projects
None yet
Development

No branches or pull requests

1 participant