FIX: Query params were going a bit haywire when going from topic to topic.

This commit is contained in:
Robin Ward 2013-10-15 12:39:43 -04:00
parent b62913695c
commit afff145bd3
1 changed files with 2 additions and 1 deletions

View File

@ -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;