Skip to content

Commit f23c982

Browse files
authored
fix: webroot not working in archive view (#1043)
Without this the archive page fails to render.
1 parent 8be5775 commit f23c982

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

internal/view/archive.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22
<html lang="en">
33

44
<head>
5+
<base href="$$.RootPath$$">
56
<meta charset="UTF-8">
67
<meta name="viewport" content="width=device-width, initial-scale=1.0">
78
<title>$$.Book.Title$$</title>
8-
<link rel="stylesheet" href="$$.RootPath$$assets/css/archive.css" />
9+
<link rel="stylesheet" href="assets/css/archive.css" />
910
</head>
1011

1112
<body class="archive">
@@ -14,10 +15,10 @@
1415
<div class="spacer"></div>
1516
<a href="$$.Book.URL$$" target="_blank">View Original</a>
1617
$$if .Book.HasContent$$
17-
<a href="/bookmark/$$.Book.ID$$/content">View Readable</a>
18+
<a href="bookmark/$$.Book.ID$$/content">View Readable</a>
1819
$$end$$
1920
</div>
20-
<iframe src="/bookmark/$$.Book.ID$$/archive/file/" frameborder="0"></iframe>
21+
<iframe src="bookmark/$$.Book.ID$$/archive/file/" frameborder="0"></iframe>
2122
</body>
2223

2324
</html>

0 commit comments

Comments
 (0)