Skip to content

Commit

Permalink
Correctly prettify canonical URLs when prettyurls=true. (#1293)
Browse files Browse the repository at this point in the history
(cherry picked from commit 048d2fa)
  • Loading branch information
fredrikekre authored and mortenpi committed Apr 15, 2020
1 parent 82ce084 commit 3bb0fe9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Documenter.jl changelog

## Version `v0.24.9`

* ![Bugfix][badge-bugfix] Canonical URLs are now properly prettified (e.g. `/path/` instead of `/path/index.html`) when using `prettyurls=true`. ([#1293][github-1293])

## Version `v0.24.8`

* ![Enhancement][badge-enhancement] Non-standard admonition categories are (again) applied to the admonition `<div>` elements in HTML output (as `is-category-$category`). ([#1279][github-1279], [#1280][github-1280])
Expand Down Expand Up @@ -535,6 +539,7 @@
[github-1269]: https://github.com/JuliaDocs/Documenter.jl/pull/1269
[github-1279]: https://github.com/JuliaDocs/Documenter.jl/issues/1279
[github-1280]: https://github.com/JuliaDocs/Documenter.jl/pull/1280
[github-1293]: https://github.com/JuliaDocs/Documenter.jl/pull/1293

[documenterlatex]: https://github.com/JuliaDocs/DocumenterLaTeX.jl
[documentermarkdown]: https://github.com/JuliaDocs/DocumenterMarkdown.jl
Expand Down
2 changes: 1 addition & 1 deletion src/Writers/HTMLWriter.jl
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ function render_head(ctx, navnode)

analytics_script(ctx.settings.analytics),

canonical_link_element(ctx.settings.canonical, src),
canonical_link_element(ctx.settings.canonical, pretty_url(ctx, src)),

# Stylesheets.
map(css_links) do each
Expand Down

0 comments on commit 3bb0fe9

Please sign in to comment.