From a6e3d697f61de8c0d8555be22e373922ef214fe6 Mon Sep 17 00:00:00 2001 From: Christoph Reiter <reiter.christoph@gmail.com> Date: Tue, 24 Sep 2019 17:23:18 +0200 Subject: [PATCH] Prevent default for the profile event. This adds a hash which confuses keycloak and results in a redirect sometimes. --- packages/auth/src/vpu-auth.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/auth/src/vpu-auth.js b/packages/auth/src/vpu-auth.js index 1bfcb4c1..6706d0a4 100644 --- a/packages/auth/src/vpu-auth.js +++ b/packages/auth/src/vpu-auth.js @@ -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> -- GitLab