Skip to content

Commit

Permalink
Merge pull request #85 from amansinghbais/launchpad/#51
Browse files Browse the repository at this point in the history
Fixed: prevent redirect to login page after successful login using browser back button (#51)
  • Loading branch information
ravilodhi authored Sep 26, 2024
2 parents 95d58a4 + 36e7def commit 6c25935
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/Login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ export default defineComponent({
}
omsUrl = omsUrl ? omsUrl : this.authStore.oms.startsWith('http') ? this.authStore.oms.includes('/api') ? this.authStore.oms : `${this.authStore.oms}/api/` : this.authStore.oms
window.location.href = `${this.authStore.getRedirectUrl}?oms=${omsUrl}&token=${this.authStore.token.value}&expirationTime=${this.authStore.token.expiration}${isMaargLogin(this.authStore.getRedirectUrl) ? '&omsRedirectionUrl=' + this.authStore.oms : ''}`
window.location.replace(`${this.authStore.getRedirectUrl}?oms=${omsUrl}&token=${this.authStore.token.value}&expirationTime=${this.authStore.token.expiration}${isMaargLogin(this.authStore.getRedirectUrl) ? '&omsRedirectionUrl=' + this.authStore.oms : ''}`)
}
},
setup () {
Expand Down

0 comments on commit 6c25935

Please sign in to comment.