Skip to content

Commit c2e38b3

Browse files
committed
Fix 404 back home button
1 parent f576ce4 commit c2e38b3

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
@@ -76,7 +76,7 @@ <h2 class="error-404-subtitle">Page Not Found</h2>
7676
<p class="error-404-text">The page you are looking for might have been removed, had its name changed, or is
7777
temporarily unavailable.</p>
7878
<div class="error-404-buttons">
79-
<a href="http://localhost:8000/" class="btn btn-primary error-404-button">
79+
<a href="{{ theme_canonical_url }}" class="btn btn-primary error-404-button">
8080
Back Home <i class="fa fa-arrow-right" aria-hidden="true"></i>
8181
</a>
8282
<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)