@jsenv/navi 0.14.12 → 0.14.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7810,9 +7810,14 @@ const createRoute = (urlPatternInput) => {
7810
7810
  buildRelativeUrl(params);
7811
7811
  let processedRelativeUrl = relativeUrl;
7812
7812
  if (processedRelativeUrl[0] === "/") {
7813
+ // we remove the leading slash because we want to resolve against baseUrl which may
7814
+ // not be the root url
7813
7815
  processedRelativeUrl = processedRelativeUrl.slice(1);
7814
7816
  }
7815
7817
  if (hasRawUrlPartWithInvalidChars) {
7818
+ if (!baseUrl.endsWith("/")) {
7819
+ return `${baseUrl}/${processedRelativeUrl}`;
7820
+ }
7816
7821
  return `${baseUrl}${processedRelativeUrl}`;
7817
7822
  }
7818
7823
  const url = new URL(processedRelativeUrl, baseUrl).href;
@@ -16334,7 +16339,6 @@ installImportMetaCss(import.meta);import.meta.css = /* css */`
16334
16339
  position: relative;
16335
16340
  color: var(--x-link-color);
16336
16341
  text-decoration: var(--x-link-text-decoration);
16337
- vertical-align: middle;
16338
16342
  border-radius: var(--link-border-radius);
16339
16343
  outline-width: 0;
16340
16344
  outline-style: solid;