File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3232 < div mat-menu-item *ngFor ="let lang of languages ">
3333 < a
3434 class ="language-link "
35- href ="{{ host }}{{
35+ href ="{{ baseUrl }}{{
3636 lang.name === 'en' ? currentUrl : '/' + (lang.name + currentUrl)
3737 }} "
3838 (click) ="changeLanguage(lang.name) "
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import { environment } from '~environments/environment';
1313} )
1414export class HeaderComponent implements OnInit {
1515 selectedLanguage : string ;
16- host : string ;
16+ baseUrl : string ;
1717 currentUrl : string ;
1818 languages : any [ ] ;
1919 isLoggedIn : boolean ;
@@ -25,7 +25,7 @@ export class HeaderComponent implements OnInit {
2525 private authService : AuthService ,
2626 private router : Router
2727 ) {
28- this . host = environment . host ;
28+ this . baseUrl = environment . baseUrl ;
2929 this . selectedLanguage = '' ;
3030 this . currentUrl = '' ;
3131 this . languages = [
Original file line number Diff line number Diff line change 11export const environment = {
22 production : false ,
3- host : 'http://localhost:4200' ,
3+ baseUrl : 'http://localhost:4200' ,
44 graphqlHost : 'https://nestjs-example-app.herokuapp.com/' ,
55 // graphqlHost: 'http://localhost:3000/'
66} ;
You can’t perform that action at this time.
0 commit comments