mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 03:06:53 +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:
@ -428,11 +428,6 @@ const DiscourseURL = Ember.Object.extend({
|
|||||||
|
|
||||||
if (opts.replaceURL) {
|
if (opts.replaceURL) {
|
||||||
this.replaceState(path);
|
this.replaceState(path);
|
||||||
} else {
|
|
||||||
const discoveryTopics = this.controllerFor("discovery/topics");
|
|
||||||
if (discoveryTopics) {
|
|
||||||
discoveryTopics.resetParams();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const split = path.split("#");
|
const split = path.split("#");
|
||||||
|
Reference in New Issue
Block a user