mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 11:35:32 +08:00
FIX: Fix a navigation bug
To reproduce:
1. Visit a url in a new tab such as `/latest?order=views`
2. Click a topic link
3. Click the back button
Before this patch, you would not be sent back to the latest list.
Now, I am somewhat hesitant to delete code like this, but the [original
commit](b2b7f4d905
)
explains a situation that I cannot reproduce with the code missing.
I cannot seem to keep the filters as sticky even if I try. At the very
least this is better to commit right now than the currently known broken
situation.
This commit is contained in:
parent
8a0be71b3c
commit
ed936bcb01
|
@ -428,11 +428,6 @@ const DiscourseURL = Ember.Object.extend({
|
|||
|
||||
if (opts.replaceURL) {
|
||||
this.replaceState(path);
|
||||
} else {
|
||||
const discoveryTopics = this.controllerFor("discovery/topics");
|
||||
if (discoveryTopics) {
|
||||
discoveryTopics.resetParams();
|
||||
}
|
||||
}
|
||||
|
||||
const split = path.split("#");
|
||||
|
|
Loading…
Reference in New Issue
Block a user