From e1f4de0de324180115bdd6e35ef354177e45d240 Mon Sep 17 00:00:00 2001 From: wiz Date: Fri, 10 Sep 2021 16:56:00 +0900 Subject: [PATCH] Set canonical URLs for new 3 site structure --- frontend/src/app/components/app/app.component.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/frontend/src/app/components/app/app.component.ts b/frontend/src/app/components/app/app.component.ts index 166456757..0cb6ef051 100644 --- a/frontend/src/app/components/app/app.component.ts +++ b/frontend/src/app/components/app/app.component.ts @@ -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()); } }); }