mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 01:22:36 +08:00
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:
parent
6c155dba77
commit
9057379aac
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user