v0.8.3.2 - A Small Hotfix (#3194)

Co-authored-by: Robbie Davis <robbie@therobbiedavis.com>
Co-authored-by: Weblate (bot) <hosted@weblate.org>
Co-authored-by: Havokdan <havokdan@yahoo.com.br>
Co-authored-by: daydreamrabbit <devrabbit90@gmail.com>
Co-authored-by: 無情天 <kofzhanganguo@126.com>
This commit is contained in:
Joe Milazzo 2024-09-20 16:18:42 -05:00 committed by GitHub
parent 77de5ccce3
commit 894b49bb76
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
43 changed files with 307 additions and 241 deletions

View file

@ -8,7 +8,7 @@ import {
OnInit,
ViewChild
} from '@angular/core';
import {AsyncPipe, DecimalPipe, DOCUMENT, NgStyle, NgClass, DatePipe} from "@angular/common";
import {AsyncPipe, DecimalPipe, DOCUMENT, NgStyle, NgClass, DatePipe, Location} from "@angular/common";
import {ActivatedRoute, Router, RouterLink} from "@angular/router";
import {ImageService} from "../_services/image.service";
import {SeriesService} from "../_services/series.service";
@ -198,6 +198,7 @@ export class VolumeDetailComponent implements OnInit {
protected readonly utilityService = inject(UtilityService);
private readonly readingListService = inject(ReadingListService);
private readonly messageHub = inject(MessageHubService);
private readonly location = inject(Location);
protected readonly AgeRating = AgeRating;
@ -555,8 +556,9 @@ export class VolumeDetailComponent implements OnInit {
}
updateUrl(activeTab: TabID) {
const newUrl = `${this.router.url.split('#')[0]}#${activeTab}`;
window.history.replaceState({}, '', newUrl);
const tokens = this.location.path().split('#');
const newUrl = `${tokens[0]}#${activeTab}`;
this.location.replaceState(newUrl)
}
openPerson(field: FilterField, value: number) {