mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
FIX: Back button was broken after clicking flags in hamburger
This commit is contained in:
parent
122fb8025d
commit
e863d66e33
2 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
export default Discourse.Route.extend({
|
export default Discourse.Route.extend({
|
||||||
redirect: function() {
|
redirect() {
|
||||||
this.replaceWith('adminFlags.list', 'active');
|
this.replaceWith('adminFlags.list', 'active');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -36,7 +36,7 @@ export default createWidget('hamburger-menu', {
|
||||||
const { currentUser } = this;
|
const { currentUser } = this;
|
||||||
|
|
||||||
const links = [{ route: 'admin', className: 'admin-link', icon: 'wrench', label: 'admin_title' },
|
const links = [{ route: 'admin', className: 'admin-link', icon: 'wrench', label: 'admin_title' },
|
||||||
{ route: 'adminFlags',
|
{ href: '/admin/flags/index',
|
||||||
className: 'flagged-posts-link',
|
className: 'flagged-posts-link',
|
||||||
icon: 'flag',
|
icon: 'flag',
|
||||||
label: 'flags_title',
|
label: 'flags_title',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue