mirror of
https://github.com/Qortal/qortal-ui.git
synced 2025-02-12 02:05:51 +00:00
fix linking error when link to root q-app
This commit is contained in:
parent
0215bd0779
commit
c0b31de132
@ -103,7 +103,17 @@ function processText(input) {
|
|||||||
const res = await extractComponents(part)
|
const res = await extractComponents(part)
|
||||||
if (!res) return
|
if (!res) return
|
||||||
const { service, name, identifier, path } = res
|
const { service, name, identifier, path } = res
|
||||||
window.location = `../../qdn/browser/index.html?service=${service}&name=${name}&identifier=${identifier}&path=${path}`
|
let query = `?service=${service}`
|
||||||
|
if (name) {
|
||||||
|
query = query + `&name=${name}`
|
||||||
|
}
|
||||||
|
if (identifier) {
|
||||||
|
query = query + `&identifier=${identifier}`
|
||||||
|
}
|
||||||
|
if (path) {
|
||||||
|
query = query + `&path=${path}`
|
||||||
|
}
|
||||||
|
window.location = `../../qdn/browser/index.html${query}`
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log({ error })
|
console.log({ error })
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user