-
Notifications
You must be signed in to change notification settings - Fork 192
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
[SSR] Adding basePath to ROOT_URL alters intended url #508
Comments
Reproduced, will work on a fix. |
@mquandalle I realize, as you say, that the root cause may be I managed to resolve this (at least temporarily) by commenting out router.js#L46. Also, please notice an additional issue. Caching will fail when // server/route.js
_cachePage(url, data, timeout) {
// Fix URL to include _basePath
url = `${FlowRouter.basePath}${url}`;
...
} |
Hi,
I've noticed the following issue with the
ssr
branch.When
ROOT_URL
has abasePath
, e.g.ROOT_URL=http://localhost:8000/basePath
- whenever the browser loads the page the path gets an additionalbasePath
appended at the end of the url, e.g. visitinghttp://localhost:8000/basePath
will "redirect" tohttp://localhost:8000/basePath/basePath
.This seems to be caused by router.js#L46.
I had tried to clone the
ssr
branch locally in order to try and fix this, but encountered an additional issue #507The text was updated successfully, but these errors were encountered: