Skip to content

Commit 3066b6f

Browse files
committed
Fix link to back Home in 404.html
1 parent 2e27932 commit 3066b6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytorch_sphinx_theme2/templates/404.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ <h2 class="error-404-subtitle">Page Not Found</h2>
9494
<p class="error-404-text">The page you are looking for might have been removed, had its name changed, or is
9595
temporarily unavailable.</p>
9696
<div class="error-404-buttons">
97-
<a href="{{ html_baseurl or '/' }}" class="btn btn-primary error-404-button">
97+
<a href="{{ pathto(master_doc) }}" class="btn btn-primary error-404-button">
9898
Back Home <i class="fa fa-arrow-right" aria-hidden="true"></i>
9999
</a>
100100
<a href="{{ theme_feedback_url|default('https://github.com/pytorch/pytorch') }}/issues/new?template=documentation.yml&labels=module:%20docs,broken-link"

0 commit comments

Comments
 (0)