Browse Source

Merge pull request #159 from Philreact/bugfix/chat-link-root

fix linking error when link to root q-app
qortal-ui-dev
AlphaX-Projects 1 year ago committed by GitHub
parent
commit
c62d2bb86e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      qortal-ui-plugins/plugins/core/components/ChatScroller.js

12
qortal-ui-plugins/plugins/core/components/ChatScroller.js

@ -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…
Cancel
Save