diff --git a/src/src/app/common/components/twitch-login/twitch-login.component.ts b/src/src/app/common/components/twitch-login/twitch-login.component.ts
index d090a34..f4ce3a4 100644
--- a/src/src/app/common/components/twitch-login/twitch-login.component.ts
+++ b/src/src/app/common/components/twitch-login/twitch-login.component.ts
@@ -20,10 +20,9 @@ export class TwitchLoginComponent {
@Input() redirectUrl: string | null = null;
twitchLogin(): void {
- const redirectUrl = `${environment.apiUrl}/${this.redirectUrl}`;
window.location.href = `https://id.twitch.tv/oauth2/authorize?` +
encodeURI(`client_id=${environment.twitchClientId}&` +
- `redirect_uri=${redirectUrl}&` +
+ `redirect_uri=${this.redirectUrl}&` +
`response_type=code&` +
`scope=${environment.twitchScopes[this.twitchScopeIndex].join(' ')}`);
}
diff --git a/src/src/app/view/login/login.component.html b/src/src/app/view/login/login.component.html
index 2547cbf..74f4ab5 100644
--- a/src/src/app/view/login/login.component.html
+++ b/src/src/app/view/login/login.component.html
@@ -16,7 +16,7 @@
data-shape="rectangular"
data-logo_alignment="left">
-
+
diff --git a/src/src/app/view/login/login.component.ts b/src/src/app/view/login/login.component.ts
index b106fad..d13efab 100644
--- a/src/src/app/view/login/login.component.ts
+++ b/src/src/app/view/login/login.component.ts
@@ -59,4 +59,6 @@ export class LoginComponent implements OnInit {
}
});
}
+
+ protected readonly environment = environment;
}
diff --git a/src/src/app/view/twitch/twitch-bot-index/twitch-bot-index.component.html b/src/src/app/view/twitch/twitch-bot-index/twitch-bot-index.component.html
index 6d63269..444e425 100644
--- a/src/src/app/view/twitch/twitch-bot-index/twitch-bot-index.component.html
+++ b/src/src/app/view/twitch/twitch-bot-index/twitch-bot-index.component.html
@@ -1,5 +1,5 @@
-
+
diff --git a/src/src/app/view/twitch/twitch-bot-index/twitch-bot-index.component.ts b/src/src/app/view/twitch/twitch-bot-index/twitch-bot-index.component.ts
index bb25dba..0ab728b 100644
--- a/src/src/app/view/twitch/twitch-bot-index/twitch-bot-index.component.ts
+++ b/src/src/app/view/twitch/twitch-bot-index/twitch-bot-index.component.ts
@@ -5,6 +5,7 @@ import {MatButton} from '@angular/material/button';
import {StandardBannerComponent} from '../../../common/components/standard-banner/standard-banner.component';
import {TwitchLoginComponent} from '../../../common/components/twitch-login/twitch-login.component';
import {TwitchBotFaqComponent} from "../twitch-bot-faq/twitch-bot-faq.component";
+import {environment} from "../../../../environments/environment";
@Component({
selector: 'app-twitch-bot-index',
@@ -21,4 +22,5 @@ import {TwitchBotFaqComponent} from "../twitch-bot-faq/twitch-bot-faq.component"
styleUrl: './twitch-bot-index.component.scss'
})
export class TwitchBotIndexComponent {
+ protected readonly environment = environment;
}