Merge pull request #6686 from mempool/natsoni/fix-liquid-block-search

Fix Liquid URL from block height search
This commit is contained in:
mononaut 2026-08-13 16:06:46 +08:00 committed by GitHub
commit 79b9299be5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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