Skip to content

webpack-dev-server cant open non primary url #49

@alishi973

Description

@alishi973

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions