Skip to content

Commit

Permalink
Merge pull request #38194 from nextcloud/fix/unsupported-redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
skjnldsv authored May 11, 2023
2 parents 2d41f0c + 68abba8 commit e176848
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions core/src/views/UnsupportedBrowser.vue
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,10 @@ export default {
const urlParams = new URLSearchParams(window.location.search)
if (urlParams.has('redirect_url')) {
const redirectPath = Buffer.from(urlParams.get('redirect_url'), 'base64').toString() || '/'
window.location = redirectPath
return
if (redirectPath.startsWith('/')) {
window.location = generateUrl(redirectPath)
return
}
}
window.location = generateUrl('/')
},
Expand Down
4 changes: 2 additions & 2 deletions dist/core-unsupported-browser.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e176848

Please sign in to comment.