Skip to content

Commit

Permalink
Fix hierarchy browsing for subsets (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefandesu committed Jun 12, 2024
1 parent a7acff9 commit ff18df7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import config from "@/config.js"
export const routerBasePath = "/" + config.namespace.pathname.replace(import.meta.env.BASE_URL, "")

export function getRouterUrl({ scheme, concept }) {
if (concept?.uri.startsWith(config.namespace)) {
if (concept?.uri.startsWith(config.namespace) && (!scheme?.uri || concept?.uri.startsWith(scheme?.uri))) {
return `${routerBasePath}${concept.uri.replace(config.namespace, "")}`
}
if (!scheme?.uri) {
Expand Down

0 comments on commit ff18df7

Please sign in to comment.