From 713ac646369117ae80500dd37071e3828184fd67 Mon Sep 17 00:00:00 2001 From: hunicus <93150691+hunicus@users.noreply.github.com> Date: Mon, 12 Dec 2022 01:42:01 -0500 Subject: [PATCH] Fix routing for top-nav doc button --- frontend/src/app/docs/docs.routing.module.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/frontend/src/app/docs/docs.routing.module.ts b/frontend/src/app/docs/docs.routing.module.ts index e58ddecd7..1babb1dcf 100644 --- a/frontend/src/app/docs/docs.routing.module.ts +++ b/frontend/src/app/docs/docs.routing.module.ts @@ -12,7 +12,8 @@ if (browserWindowEnv.BASE_MODULE && (browserWindowEnv.BASE_MODULE === 'bisq' || routes = [ { path: '', - redirectTo: 'api/rest' + redirectTo: 'api/rest', + pathMatch: 'full' }, { path: 'api/:type', @@ -20,11 +21,13 @@ if (browserWindowEnv.BASE_MODULE && (browserWindowEnv.BASE_MODULE === 'bisq' || }, { path: 'api', - redirectTo: 'api/rest' + redirectTo: 'api/rest', + pathMatch: 'full' }, { path: '**', - redirectTo: 'api/rest' + redirectTo: 'api/rest', + pathMatch: 'full' } ]; } else {