Skip to content

Commit 8d0abfe

Browse files
committed
fix(default-header): cDropdownToggle empty link redirects to home page
1 parent f9fb98a commit 8d0abfe

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/app/app-routing.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ const routes: Routes = [
100100
title: 'Register Page'
101101
}
102102
},
103-
{path: '**', component: Page404Component}
103+
{path: '**', redirectTo: 'dashboard'}
104104
];
105105

106106
@NgModule({

src/app/containers/default-layout/default-header/default-header.component.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,10 @@
5959

6060
<ng-template #userDropdown>
6161
<c-dropdown alignment="end" variant="nav-item">
62-
<a
62+
<button
63+
cButton
64+
color=""
6365
[caret]="false"
64-
routerLink
6566
cDropdownToggle
6667
class="py-0"
6768
>
@@ -73,7 +74,7 @@
7374
status="success"
7475
>
7576
</c-avatar>
76-
</a>
77+
</button>
7778
<ul cDropdownMenu class="pt-0 pr-5 w-auto">
7879
<li>
7980
<h6 cDropdownHeader class="bg-light fw-semibold py-2">Account</h6>

0 commit comments

Comments
 (0)