Deep linking into front-end routes not working as expected · Issue #1 · humphd/s...
source link: https://github.com/humphd/snowy-owls-ca/issues/1
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
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.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK