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

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