FIX: url:refresh triggered when query params change

Going from /latest?f=tracked to /latest will result in three
different topic list requests because the query params are not
considered when determining if the route is staying the same.
This commit is contained in:
Neil Lalonde 2021-01-15 11:35:10 -05:00
parent 6c155dba77
commit 9057379aac
1 changed files with 1 additions and 1 deletions

View File

@ -247,7 +247,7 @@ const DiscourseURL = EmberObject.extend({
return this.replaceState(path);
}
const oldPath = window.location.pathname;
const oldPath = `${window.location.pathname}${window.location.search}`;
path = path.replace(/(https?\:)?\/\/[^\/]+/, "");
// Rewrite /my/* urls