We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c7745f6 + 1c92524 commit 6218c70Copy full SHA for 6218c70
1 file changed
public/js/lib/config/index.js
@@ -7,7 +7,7 @@ export const debug = window.debug || false
7
export const port = window.location.port
8
export const serverurl = `${window.location.protocol}//${domain || window.location.hostname}${port ? ':' + port : ''}${urlpath ? '/' + urlpath : ''}`
9
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]
+export const noteid = decodeURIComponent(urlpath ? window.location.pathname.slice(urlpath.length + 1, window.location.pathname.length).split('/')[1] : window.location.pathname.split('/')[1])
11
export const noteurl = `${serverurl}/${noteid}`
12
13
export const version = window.version
0 commit comments