Skip to content

Commit 42075a3

Browse files
authored
fix: url hash sanitization (#337)
1 parent c993c5a commit 42075a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/linea-ens-app/src/routes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ export const getDestination = (url: UrlObject | string) => {
247247
const values = href.split('/')
248248
let replacedDestination = (isIPFS ? rewrite.destination : rewrite.flattenedDestination)
249249
.replace(/\$(\d)/g, (_, n) => values[parseInt(n)])
250-
.replace('#', '%23')
250+
.replace(/#/g, '%23')
251251
if (!isIPFS && rewrite.tldPrefix && !replacedDestination.includes('.')) {
252252
replacedDestination = `/tld${replacedDestination}`
253253
}

0 commit comments

Comments
 (0)