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

Incorrect url building #1

Open
ma-gu opened this issue Aug 2, 2016 · 0 comments
Open

Incorrect url building #1

ma-gu opened this issue Aug 2, 2016 · 0 comments

Comments

@ma-gu
Copy link

ma-gu commented Aug 2, 2016

Hello Vaclav!

I think the line from Index.chtml

var path = window.location.pathname;

should be replaced with

var path = window.location.pathname.replace(/\/$/, "");

in order to remove trailing slash from pathname. Otherwise we getting double slash inside url:
http://localhost/demo//api/workservice 404 (Not Found)

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

1 participant