Skip to content

Commit

Permalink
fix: webroot not working in archive view (#1043)
Browse files Browse the repository at this point in the history
Without this the archive page fails to render.
  • Loading branch information
edsu authored Dec 31, 2024
1 parent 8be5775 commit f23c982
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions internal/view/archive.html
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand All @@ -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>

0 comments on commit f23c982

Please sign in to comment.