Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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