Skip to content

Commit

Permalink
FIX: Avoid redirection in hamburger menu.
Browse files Browse the repository at this point in the history
  • Loading branch information
tgxworld committed Sep 26, 2017
1 parent 645223c commit f5c4501
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions assets/javascripts/discourse/initializers/cakeday.js.es6
Expand Up @@ -84,9 +84,9 @@ function initializeCakeday(api, siteSettings) {
let route;

if (cakedayEnabled) {
route = 'cakeday.anniversaries';
route = 'cakeday.anniversaries.today';
} else if (cakedayBirthdayEnabled) {
route = 'cakeday.birthdays';
route = 'cakeday.birthdays.today';
}

return { route: route, label: 'cakeday.title', className: 'cakeday-link' };
Expand Down
@@ -1,5 +1,5 @@
export default Discourse.Route.extend({
beforeModel() {
this.transitionTo("cakeday.anniversaries.today");
this.replaceWith("cakeday.anniversaries.today");
}
});
@@ -1,5 +1,5 @@
export default Discourse.Route.extend({
beforeModel() {
this.transitionTo("cakeday.birthdays.today");
this.replaceWith("cakeday.birthdays.today");
}
});

0 comments on commit f5c4501

Please sign in to comment.