Correct misplacing of path context

This commit is contained in:
Florian Scholdei
2020-05-15 00:40:56 +02:00
parent 9fe66f4ff1
commit 327bde9515

View File

@@ -74,7 +74,7 @@ export function correctLocalLink(pathname: string, link: string) {
return base + path;
}
function MarkdownLinkRenderer(props: Props) {
const compositeUrl = withContextPath(correctLocalLink(props.location.pathname, props.href));
const compositeUrl = correctLocalLink(withContextPath(props.location.pathname), props.href);
return <a href={compositeUrl}>{props.children}</a>;
}