Auto-load seed url when replaying seeded crawls (#1786)

Closes #1787

- Crawls with only one seed will load viewing that seed URL
- URL list crawls with >1 URLs will continue to load the pages list as no
ReplayWeb.page enbed URL has been defined

Co-authored-by: sua yoo <sua@webrecorder.org>
This commit is contained in:
Henry Wilkinson 2024-05-07 14:03:14 -04:00 committed by GitHub
parent fe583c0f50
commit 06b512bb84
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View File

@ -683,6 +683,7 @@ export class ArchivedItemDetail extends TailwindElement {
? html`<div id="replay-crawl" class="aspect-4/3 overflow-hidden">
<replay-web-page
source="${replaySource}"
url="${this.crawl.seedCount === 1 && this.crawl.firstSeed || ""}"
coll="${ifDefined(this.crawl.id)}"
config="${config}"
replayBase="/replay/"

View File

@ -5,6 +5,7 @@
* @attr {String} replayBase
* @attr {String} noSandbox
* @attr {String} noCache
* @attr {String} url
*/
class ReplayWebPage {}