From 327bde9515e27eac7ef27bbebc28847e0d603b93 Mon Sep 17 00:00:00 2001 From: Florian Scholdei Date: Fri, 15 May 2020 00:40:56 +0200 Subject: [PATCH] Correct misplacing of path context --- scm-ui/ui-components/src/MarkdownLinkRenderer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scm-ui/ui-components/src/MarkdownLinkRenderer.tsx b/scm-ui/ui-components/src/MarkdownLinkRenderer.tsx index 1c4c26020d..2e512fde51 100644 --- a/scm-ui/ui-components/src/MarkdownLinkRenderer.tsx +++ b/scm-ui/ui-components/src/MarkdownLinkRenderer.tsx @@ -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 {props.children}; }