mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 07:25:44 +01:00
Correct misplacing of path context
This commit is contained in:
@@ -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>;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user