fix: path check for ext pages with arguments (#3660)
This commit is contained in:
parent
f3a5a8e002
commit
7747d7b741
2 changed files with 2 additions and 2 deletions
2
lnbits/static/bundle-components.min.js
vendored
2
lnbits/static/bundle-components.min.js
vendored
File diff suppressed because one or more lines are too long
|
|
@ -38,7 +38,7 @@ const DynamicComponent = {
|
||||||
let route = RENDERED_ROUTE
|
let route = RENDERED_ROUTE
|
||||||
// append trailing slash only on the root path `/path` -> `/path/`
|
// append trailing slash only on the root path `/path` -> `/path/`
|
||||||
if (route.split('/').length === 2) route += '/'
|
if (route.split('/').length === 2) route += '/'
|
||||||
if (route !== this.$route.fullPath) {
|
if (route !== this.$route.path) {
|
||||||
console.log('Redirecting to non-vue route:', this.$route.fullPath)
|
console.log('Redirecting to non-vue route:', this.$route.fullPath)
|
||||||
window.location = this.$route.fullPath
|
window.location = this.$route.fullPath
|
||||||
return
|
return
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue