Skip to content

Commit c6686ec

Browse files
authored
Fix routing with hash inside a parameter value (baserow#4792)
1 parent 137772b commit c6686ec

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

web-frontend/modules/builder/utils/routing.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,10 @@ export const resolveApplicationRoute = (pages, fullPath) => {
44
if (fullPath === undefined || fullPath === null) {
55
return undefined
66
}
7-
// Nuxt route.fullPath usually includes query/hash; path-to-regexp matches pathnames.
8-
const pathname = fullPath.split('?')[0].split('#')[0]
97

108
for (const page of pages) {
119
const matcher = match(page.path.slice(1))
12-
const matched = matcher(pathname)
10+
const matched = matcher(fullPath)
1311

1412
if (matched) {
1513
// matched = { path, params, index? }

0 commit comments

Comments
 (0)