Skip to content

Commit 6218c70

Browse files
authored
Merge pull request #865 from SISheogorath/fix/unicodeURLs
Fix broken unicode urls
2 parents c7745f6 + 1c92524 commit 6218c70

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

public/js/lib/config/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export const debug = window.debug || false
77
export const port = window.location.port
88
export const serverurl = `${window.location.protocol}//${domain || window.location.hostname}${port ? ':' + port : ''}${urlpath ? '/' + urlpath : ''}`
99
window.serverurl = serverurl
10-
export const noteid = urlpath ? window.location.pathname.slice(urlpath.length + 1, window.location.pathname.length).split('/')[1] : window.location.pathname.split('/')[1]
10+
export const noteid = decodeURIComponent(urlpath ? window.location.pathname.slice(urlpath.length + 1, window.location.pathname.length).split('/')[1] : window.location.pathname.split('/')[1])
1111
export const noteurl = `${serverurl}/${noteid}`
1212

1313
export const version = window.version

0 commit comments

Comments
 (0)