Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion _layouts/redirect.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,19 @@
<title>{% if moved_to_help %}Moved to the Keboola help docs{% else %}Redirecting&hellip;{% endif %} | Keboola Developers Knowledge Base</title>
<link rel="canonical" href="{{ target }}">
<meta name="robots" content="noindex">
<script>location.replace("{{ target }}")</script>
{%- comment -%}
Carry the URL fragment across the redirect: a reader following a deep link
like /extend/generic-extractor/configuration/#retry should land on that
section of the help page, not at its top. The meta refresh below is the
no-JS fallback and cannot forward the fragment (browsers drop it).
{%- endcomment -%}
<script>
var target = "{{ target }}";
if (target.indexOf("#") < 0 && location.hash) {
target += location.hash;
}
location.replace(target);
</script>
<meta http-equiv="refresh" content="0; url={{ target }}">
<style>
body { margin: 0; padding: 3rem 1.5rem; color: #333; background: #fff;
Expand Down
Loading