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

Since latest version, direct links don't work anymore #204

Closed
kristof-mattei opened this issue Oct 6, 2016 · 4 comments
Closed

Since latest version, direct links don't work anymore #204

kristof-mattei opened this issue Oct 6, 2016 · 4 comments

Comments

@kristof-mattei
Copy link

How to reproduce:

git clone repo.git my-app
cd my-app
npm install
npm run start:hmr # or npm run start

Now navigate to http://localhost:8080/about. Doesn't work.

Navigating from http://localhost:8080/, and clicking About on top does work.

If we check what gets offered by the webserver, we can clearly see that for http://localhost:8080/about there are no scripts.

@Foxandxss
Copy link
Member

Weird. I will investigate.

@allanharris
Copy link

allanharris commented Oct 8, 2016

Route like this should be somewhere in serving (nodejs) code:

    // Angular routes support
    app.use("*", function (req, res) {
        res.sendFile(path.join(__dirname, "../public/index.html"));
    });

@Foxandxss
Copy link
Member

Foxandxss commented Oct 8, 2016

The problem is the dev server. I reported it here webpack/webpack-dev-server#640

@Foxandxss
Copy link
Member

I reverted to beta 5 which works. As soon as the bug gets fixed, I updated the server again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants