mirror of
https://github.com/n8n-io/n8n-docs.git
synced 2025-11-20 17:48:34 +00:00
55 lines
2.5 KiB
HTML
55 lines
2.5 KiB
HTML
{% extends "main.html" %}
|
|
{% block htmltitle %}
|
|
<title>404</title>
|
|
{% endblock %}
|
|
{% block extrahead %}
|
|
<script>
|
|
// Create an object containing all your redirects
|
|
const redirects = {
|
|
// The big key concepts split
|
|
"/getting-started/key-concepts/": "/flow-logic/",
|
|
"/getting-started/key-concepts/#expression": "/code-examples/expressions/",
|
|
"/getting-started/key-concepts/#item": "/workflows/items/",
|
|
"/getting-started/key-concepts/#function": "/data/code/",
|
|
"/getting-started/key-concepts/#data": "/data/",
|
|
"/getting-started/key-concepts/#data-structure": "/data/data-structure/",
|
|
"/key-concepts/#data-flow": "/data/data-structure/",
|
|
"/key-concepts/#error-workflow": "/flow-logic/error-handling/",
|
|
"/key-concepts/#security": "/hosting/security/",
|
|
// Other IA redirects that seemed essential
|
|
"/getting-started/whats-next.html": "/quickstart/#whats-next",
|
|
"/getting-started/installation/advanced/server-setup.html": "/hosting/server-setups/",
|
|
"/getting-started/installation/advanced/server-setup.html#docker-compose-example": "/hosting/server-setups/docker-compose/",
|
|
"/getting-started/installation/advanced/server-setup.html#hosting-with-caddy-server": "/hosting/server-setups/caddy/",
|
|
"/reference/faq.html#integrations": "/integrations/#requesting-new-integrations-or-integration-features",
|
|
"/reference/faq.html": "/reference/license/",
|
|
"/reference/faq.html#license": "/reference/license/",
|
|
"/reference/faq.html#n8n-cloud": "/hosting/installation/cloud/",
|
|
"/nodes/expressions.html#expressions": "/code-examples/expressions/",
|
|
// High traffic anchor tag landing pages (if not covered by the above or by /docs/_redirects)
|
|
"/#what-is-n8n": "/",
|
|
"/getting-started/tutorials.html#blogposts": "https://n8n.io/blog/tag/tutorial/",
|
|
"/#/server-setup": "/hosting/server-setups/",
|
|
"/code-examples/expressions/expressions.html": "/code-examples/expressions/"
|
|
|
|
|
|
|
|
};
|
|
|
|
(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>
|
|
{% endblock %} |