Corrected canonical url.

This commit is contained in:
softsimon
2020-03-30 01:53:39 +07:00
parent 0bcfdc8028
commit 8d903c42b9

View File

@@ -21,7 +21,7 @@ export class AppComponent implements OnInit {
this.router.events.subscribe((val) => {
if (val instanceof NavigationEnd) {
if (this.network === 'liquid' || this.network === 'testnet') {
this.updateCanonicalUrlElement('https://mempool.ninja' + location.pathname);
this.updateCanonicalUrlElement('https://' + this.network + '.mempool.ninja' + location.pathname);
} else {
this.updateCanonicalUrlElement('https://mempool.space' + location.pathname);
}