Skip to content
Snippets Groups Projects
Commit a6e3d697 authored by Reiter, Christoph's avatar Reiter, Christoph :snake:
Browse files

Prevent default for the profile event.

This adds a hash which confuses keycloak and results in a redirect sometimes.
parent cab6c3f0
No related branches found
No related tags found
No related merge requests found
......@@ -282,7 +282,7 @@ class VPUAuth extends LitElement {
<div class="dropdown-menu" id="dropdown-menu2" role="menu">
<div class="dropdown-content">
${imageURL ? html`<img src="${imageURL}" width="40%" height="40%" class="dropdown-item">` : ''}
<a href="#" @click="${this.dispatchProfileEvent}" class="dropdown-item">${i18n.t('profile')}</a>
<a href="#" @click="${(e) => {e.preventDefault(); this.dispatchProfileEvent();}}" class="dropdown-item">${i18n.t('profile')}</a>
<a href="#" @click="${this.logout}" class="dropdown-item">${i18n.t('logout')}</a>
</div>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment