Describe the Bug:
Recently I tried to create a simple web application with svelte (and especially with this webpack template)
But when I added svelte-navigator and used history API, this problem happened to me:
Cannot GET /XYZ
Reproduction:
First clone and install dependencies:
git clone https://github.com/alishi973/webpack-svelte-devserver-routing
cd webpack-svelte-devserver-routing
yarn // or npm install
then open Login Page and use the Go to register Link (or you can manually type /register)
and finally, refresh the page and the problem accured.
Expected Behavior:
Open register page normally!
this is annoying during development to go on the primary route and then try to reach some page after a hard refresh
Describe the Bug:
Recently I tried to create a simple web application with svelte (and especially with this webpack template)
But when I added
svelte-navigatorand used history API, this problem happened to me:Cannot GET /XYZReproduction:
First clone and install dependencies:
then open Login Page and use the
Go to registerLink (or you can manually type /register)and finally, refresh the page and the problem accured.
Expected Behavior:
Open register page normally!
this is annoying during development to go on the primary route and then try to reach some page after a hard refresh