Skip to content

Commit

Permalink
Merge pull request #63 from gregcube/menu-cache-fix
Browse files Browse the repository at this point in the history
Fixes bug in login/logout link when caching is enabled
  • Loading branch information
lehors authored Jan 27, 2025
2 parents 6edf0bd + b96fd82 commit 8d00638
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions web/modules/mof/src/Plugin/Menu/Oauth2LoginLogoutMenuLink.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,11 @@ public function getTitle() {
}
}

/**
* {@inheritdoc}
*/
public function getCacheContexts() {
return [...parent::getCacheContexts(), 'user'];
}

}

0 comments on commit 8d00638

Please sign in to comment.