Skip to content

Commit

Permalink
Fix redirection issue sveltejs#1583
Browse files Browse the repository at this point in the history
  • Loading branch information
sidharthv96 committed May 29, 2021
1 parent a66affe commit 9dabbe0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/kit/src/runtime/client/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ export class Router {

if (incorrect) {
info.path = has_trailing_slash ? info.path.slice(0, -1) : info.path + '/';
history.replaceState({}, '', `${info.path}${location.search}`);
history.replaceState({}, '', `${this.base}${info.path}${location.search}`);
}
}

Expand Down

0 comments on commit 9dabbe0

Please sign in to comment.