Fix needing to go back twice in archived item detail initial load (#1796)
Tested locally
This commit is contained in:
parent
76cd19d126
commit
ed189efef4
@ -217,7 +217,7 @@ export class ArchivedItemDetail extends TailwindElement {
|
|||||||
} else {
|
} else {
|
||||||
const newLocation = new URL(window.location.toString());
|
const newLocation = new URL(window.location.toString());
|
||||||
newLocation.hash = this.activeTab;
|
newLocation.hash = this.activeTab;
|
||||||
window.history.pushState(undefined, "", newLocation);
|
window.history.replaceState(undefined, "", newLocation);
|
||||||
}
|
}
|
||||||
super.connectedCallback();
|
super.connectedCallback();
|
||||||
window.addEventListener("hashchange", this.getActiveTabFromHash);
|
window.addEventListener("hashchange", this.getActiveTabFromHash);
|
||||||
@ -683,7 +683,8 @@ export class ArchivedItemDetail extends TailwindElement {
|
|||||||
? html`<div id="replay-crawl" class="aspect-4/3 overflow-hidden">
|
? html`<div id="replay-crawl" class="aspect-4/3 overflow-hidden">
|
||||||
<replay-web-page
|
<replay-web-page
|
||||||
source="${replaySource}"
|
source="${replaySource}"
|
||||||
url="${this.crawl.seedCount === 1 && this.crawl.firstSeed || ""}"
|
url="${(this.crawl.seedCount === 1 && this.crawl.firstSeed) ||
|
||||||
|
""}"
|
||||||
coll="${ifDefined(this.crawl.id)}"
|
coll="${ifDefined(this.crawl.id)}"
|
||||||
config="${config}"
|
config="${config}"
|
||||||
replayBase="/replay/"
|
replayBase="/replay/"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user