Skip to content

Commit

Permalink
Merge pull request #775 from mempool/wiz/fix-canonical-name-for-three…
Browse files Browse the repository at this point in the history
…-sites

Set canonical URLs for new 3 site structure
  • Loading branch information
softsimon authored Sep 17, 2021
2 parents 07ba2f6 + e1f4de0 commit 51e09ff
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());
}
});
}
Expand Down

0 comments on commit 51e09ff

Please sign in to comment.