mirror of
https://github.com/mempool/mempool.git
synced 2025-02-25 07:07:36 +01:00
Set canonical URLs for new 3 site structure
This commit is contained in:
parent
2e122a9be1
commit
e1f4de0de3
1 changed files with 7 additions and 1 deletions
|
@ -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());
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue