Skip to content

Commit

Permalink
Apply PR aurelia#643
Browse files Browse the repository at this point in the history
  • Loading branch information
rmja committed Feb 7, 2022
1 parent d26cccc commit 0e952c7
Show file tree
Hide file tree
Showing 9 changed files with 48 additions and 4 deletions.
9 changes: 9 additions & 0 deletions dist/amd/aurelia-router.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/amd/aurelia-router.js.map

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions dist/commonjs/aurelia-router.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/commonjs/aurelia-router.js.map

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions dist/es2015/aurelia-router.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/es2015/aurelia-router.js.map

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions dist/native-modules/aurelia-router.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/native-modules/aurelia-router.js.map

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions src/navigation-plan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,14 @@ export const buildRedirectPlan = (instruction: NavigationInstruction) => {
if (queryString) {
redirectLocation += '?' + queryString;
}
let redirectQueryString = redirectInstruction.queryString;
if (redirectQueryString) {
if (queryString) {
redirectLocation += '&' + redirectQueryString;
} else {
redirectLocation += '?' + redirectQueryString;
}
}

return Promise.resolve(new Redirect(redirectLocation));
});
Expand Down

0 comments on commit 0e952c7

Please sign in to comment.