Skip to content

Commit

Permalink
Set canonical URLs for new 3 site structure
Browse files Browse the repository at this point in the history
  • Loading branch information
wiz committed Sep 17, 2021
1 parent 2e122a9 commit db2fca8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion frontend/src/app/components/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,13 @@ export class AppComponent implements OnInit {
ngOnInit() {
this.router.events.subscribe((val) => {
if (val instanceof NavigationEnd) {
this.link.setAttribute('href', 'https://mempool.space' + (this.location.path() === '/' ? '' : this.location.path()));
let domain = 'mempool.space';
if (this.stateService.env.BASE_MODULE === 'liquid') {
domain = 'liquid.network';
} else if (this.stateService.env.BASE_MODULE === 'bisq') {
domain = 'bisq.markets';
}
this.link.setAttribute('href', 'https://' + domain + (this.location.path() === '/' ? '' : this.location.path()));
}
});
}
Expand Down

0 comments on commit db2fca8

Please sign in to comment.