mirror of
https://github.com/n8n-io/n8n-docs.git
synced 2026-03-27 09:28:43 +07:00
clean up redirects (#3706)
This commit is contained in:
@@ -2,29 +2,6 @@
|
||||
{% block htmltitle %}
|
||||
<title>404</title>
|
||||
{% endblock %}
|
||||
{% block extrahead %}
|
||||
<script>
|
||||
// Create an object containing all your redirects
|
||||
const redirects = {
|
||||
|
||||
|
||||
// Use _redirects file to set redirects
|
||||
|
||||
};
|
||||
|
||||
(function redirect(){
|
||||
|
||||
const currentPath = window.location.pathname + (window.location.hash ? window.location.hash : '');
|
||||
const redirectUrl = redirects[currentPath];
|
||||
if (redirectUrl) {
|
||||
window.location.href = `${window.location.origin}${redirectUrl}`;
|
||||
return;
|
||||
}
|
||||
|
||||
})();
|
||||
|
||||
</script>
|
||||
{% endblock %}
|
||||
{% block content %}
|
||||
<h1>404 - Page not found</h1>
|
||||
<h2>Go <a href="/">home</a></h2>
|
||||
|
||||
Reference in New Issue
Block a user