Update canonical link with block hash

This commit is contained in:
Mononaut
2023-08-22 02:54:23 +09:00
committed by softsimon
parent b6f66a6a28
commit 368ab1dc66
3 changed files with 14 additions and 0 deletions

View File

@@ -202,6 +202,7 @@ export class BlockComponent implements OnInit, OnDestroy {
this.location.replaceState(
this.router.createUrlTree([(this.network ? '/' + this.network : '') + '/block/', hash]).toString()
);
this.seoService.updateCanonical(this.location.path());
return this.apiService.getBlock$(hash).pipe(
catchError((err) => {
this.error = err;