Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic redirect from page 404. #283

Closed
temiraevpg opened this issue Feb 12, 2024 · 1 comment
Closed

Automatic redirect from page 404. #283

temiraevpg opened this issue Feb 12, 2024 · 1 comment

Comments

@temiraevpg
Copy link

I offer the ability to enable a redirect script via the hugo.yaml parameter.

<script>setTimeout(function(){window.location.href = 'http://localhost:1313/';}, 5000);</script>

It is necessary to replace http://localhost:1313/ with a link to the main page baseURL, and set the delay parameter.

@imfing
Copy link
Owner

imfing commented Feb 12, 2024

The 404 page can be customized in the layouts/404.html template file.

This can be a reference just in case anyone needs it

@imfing imfing closed this as completed Feb 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants