fix
This commit is contained in:
parent
acf29ce20e
commit
c0d2965c85
|
|
@ -101,9 +101,9 @@ export const breadcrumbPrefix = (md: MDLocal) => {
|
|||
const lnk = link_hashes ? `#lnk=${link_hashes}` : ``;
|
||||
|
||||
if (p.md) {
|
||||
url = `${link.url}#${p.md.name}=${p.md.value}${lnk}`;
|
||||
url = `${p.url || link.url}#${p.md.name}=${p.md.value}${lnk}`;
|
||||
} else {
|
||||
url = `${link.url}${lnk}`;
|
||||
url = `${p.url || link.url}${lnk}`;
|
||||
}
|
||||
|
||||
if (url) {
|
||||
|
|
|
|||
|
|
@ -72,6 +72,10 @@ export const Layout: FC<LYTChild> = (props) => {
|
|||
if (!w.prasi_menu && !isEditor) {
|
||||
w.prasi_menu = { nav_override: true, nav: w.navigate, pm: null };
|
||||
w.navigate = (async (_href, params) => {
|
||||
if (!_href) {
|
||||
console.error("Failed to navigate, empty url");
|
||||
return;
|
||||
}
|
||||
if (_href.startsWith("/")) {
|
||||
const url = new URL(location.href);
|
||||
const newurl = new URL(`${url.protocol}//${url.host}${_href}`);
|
||||
|
|
|
|||
Loading…
Reference in New Issue