Skip to content

Commit 4c71760

Browse files
feat: changing mismatching url
1 parent 76fb0a4 commit 4c71760

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

src/src/app/app.routes.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@ export const routes: Routes = [
1717
{path: 'user/auth', component: LoginComponent},
1818
{path: 'user/login', component: LoginLandingComponent},
1919
{path: 'user/login/desktop', component: LoginLandingDesktopComponent},
20+
{path: 'home', component: HomeComponent}, // For google redirect
2021
{path: 'vm-admin', component: VmManagerComponent, canActivate: [authGuard]},
21-
{path: 'twitch-bot', component: TwitchBotIndexComponent},
22-
{path: 'twitch-bot/config', component: TwitchBotConfigComponent},
22+
{path: 'twitch/bot', component: TwitchBotIndexComponent},
23+
{path: 'twitch/bot/config', component: TwitchBotConfigComponent},
2324
{path: 'imdb-search', component: ImdbSearchComponent},
2425
{path: '**', component: NotFoundComponent},
2526
];

src/src/app/view/home/home.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export class HomeComponent implements OnInit {
3636
{
3737
displayName: 'Twitch Bot',
3838
description: 'The nullinside anti-bot Twitch bot.',
39-
url: 'twitch-bot',
39+
url: 'twitch/bot',
4040
params: undefined
4141
}
4242
];

src/src/app/view/twitch/twitch-bot-config/twitch-bot-config.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export class TwitchBotConfigComponent implements OnInit, OnDestroy {
7676
// request from their tokens.
7777
const token = params.get('token');
7878
if (!token) {
79-
this.router.navigate(['twitch-bot']);
79+
this.router.navigate(['twitch/bot']);
8080
return;
8181
}
8282

0 commit comments

Comments
 (0)