4
1
mirror of https://github.com/Qortal/qortal-ui.git synced 2025-02-11 09:45:52 +00:00

Merge pull request #255 from QuickMythril/fix-qortal-urls

Fix 'path' missing in URL parsing
This commit is contained in:
AlphaX-Projects 2024-02-08 14:32:53 +01:00 committed by GitHub
commit 0ac0abb1b8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -270,7 +270,6 @@ class WebBrowser extends LitElement {
const name = parts[0]
parts.shift()
let identifier
let path
if (parts.length > 0) {
identifier = parts[0] // Do not shift yet
// Check if a resource exists with this service, name and identifier combination
@ -286,6 +285,7 @@ class WebBrowser extends LitElement {
identifier = null
}
}
const path = parts.join("/")
const components = {}
components["service"] = service
components["name"] = name