fix: webroot not working in archive view (#1043)

Without this the archive page fails to render.
This commit is contained in:
Ed Summers 2024-12-31 03:27:31 -05:00 committed by GitHub
parent 8be5775313
commit f23c982ee3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2,10 +2,11 @@
<html lang="en">
<head>
<base href="$$.RootPath$$">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>$$.Book.Title$$</title>
<link rel="stylesheet" href="$$.RootPath$$assets/css/archive.css" />
<link rel="stylesheet" href="assets/css/archive.css" />
</head>
<body class="archive">
@ -14,10 +15,10 @@
<div class="spacer"></div>
<a href="$$.Book.URL$$" target="_blank">View Original</a>
$$if .Book.HasContent$$
<a href="/bookmark/$$.Book.ID$$/content">View Readable</a>
<a href="bookmark/$$.Book.ID$$/content">View Readable</a>
$$end$$
</div>
<iframe src="/bookmark/$$.Book.ID$$/archive/file/" frameborder="0"></iframe>
<iframe src="bookmark/$$.Book.ID$$/archive/file/" frameborder="0"></iframe>
</body>
</html>