Skip to content

Commit

Permalink
Merge pull request #1239 from openstax/fix-logout-link
Browse files Browse the repository at this point in the history
Fix logout link (working)
  • Loading branch information
mwvolo authored Sep 20, 2018
2 parents 992bba3 + bd7d822 commit ac0367e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/components/shell/header/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class Header extends Controller {

this.model = {
login: `${accounts}/login/openstax/`,
logout: `${accounts}/logout/`,
logout: `${settings.accountHref}/signout/`,
user: {
username: null,
groups: []
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/shell/header/main-menu/main-menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default class MainMenu extends Controller {

updateLoginUrl() {
this.model.login = `${this.loginUrl}?next=${encodeURIComponent(window.location.href)}`;
this.model.logout = `${this.logoutUrl}?next=${encodeURIComponent(window.location.href)}`;
this.model.logout = `${this.logoutUrl}`;
this.update();
}

Expand Down

0 comments on commit ac0367e

Please sign in to comment.