mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 23:03:38 +08:00
FIX: Query params were going a bit haywire when going from topic to topic.
This commit is contained in:
parent
b62913695c
commit
afff145bd3
|
@ -62,7 +62,7 @@ Discourse.URL = Em.Object.createWithMixins({
|
|||
// TODO: Extract into rules we can inject into the URL handler
|
||||
if (this.navigatedToHome(oldPath, path)) { return; }
|
||||
if (this.navigatedToListMore(oldPath, path)) { return; }
|
||||
if (this.navigatedToHome(oldPath, path)) { return; }
|
||||
if (this.navigatedToPost(oldPath, path)) { return; }
|
||||
|
||||
if (path.match(/^\/?users\/[^\/]+$/)) {
|
||||
path += "/activity";
|
||||
|
@ -147,6 +147,7 @@ Discourse.URL = Em.Object.createWithMixins({
|
|||
// Abort routing, we have replaced our state.
|
||||
return true;
|
||||
}
|
||||
this.set('queryParams', null);
|
||||
}
|
||||
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue
Block a user