Skip to content

Commit

Permalink
Change TOC links to use /details archive.org links
Browse files Browse the repository at this point in the history
Instead of legacy /stream links
  • Loading branch information
cdrini authored May 10, 2024
1 parent bf0c5aa commit 6025a85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openlibrary/macros/TableOfContents.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
$ tag = 'a' if is_link else 'div'
<$tag
class="toc__entry"
$:cond(is_link, 'href="//archive.org/stream/%s#page/%s"' % (ocaid, chapter.pagenum))
$:cond(is_link, 'href="//archive.org/details/%s/page/%s"' % (ocaid, chapter.pagenum))
$:cond(is_link, 'data-ol-link-track="BookPage|TOCClick"')
data-level="$chapter.level"
style="margin-left:$((chapter.level - min_level) * 2)ch"
Expand Down

0 comments on commit 6025a85

Please sign in to comment.