Fix routing for top-nav doc button

This commit is contained in:
hunicus 2022-12-12 01:42:01 -05:00
parent f18ea6a7a3
commit 713ac64636
No known key found for this signature in database
GPG Key ID: 24837C51B6D81FD9

View File

@ -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 {