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