Skip to content

Commit

Permalink
Query parameters should be before slash
Browse files Browse the repository at this point in the history
  • Loading branch information
pikorkar committed Aug 4, 2022
1 parent b9c5384 commit be03ff8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ PathLocationStrategy.prototype.prepareExternalUrl = function(internal) {
if (url === '') {
return url;
}
if (url.includes('search/?') && url.endsWith('%2F')) {
return url.slice(0, -3);
}
if (url.includes('search?')) {
return url.replace('search?', 'search/?');
}
if (url.endsWith('/')) {
return url;
}
Expand Down

0 comments on commit be03ff8

Please sign in to comment.