|
@@ -30,7 +30,7 @@ function openWindow(url: string, options: OpenWindowOptions = {}): void {
|
|
|
function openRouteInNewWindow(path: string) {
|
|
|
const { hash, origin } = location;
|
|
|
const fullPath = path.startsWith('/') ? path : `/${path}`;
|
|
|
- const url = `${origin}${hash ? '/#' : ''}${fullPath}`;
|
|
|
+ const url = `${origin}${hash && !fullPath.startsWith('/#') ? '/#' : ''}${fullPath}`;
|
|
|
openWindow(url, { target: '_blank' });
|
|
|
}
|
|
|
|