From 97475c2244573118b342f8df8cf43d2ebc9bf6d3 Mon Sep 17 00:00:00 2001 From: John Mulhausen Date: Fri, 13 Oct 2017 14:24:51 -0700 Subject: [PATCH] Make CSV redirects work again --- 404.md | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/404.md b/404.md index 2d5328fc74..fc0ad49c47 100644 --- a/404.md +++ b/404.md @@ -30,19 +30,6 @@ if (forwardingURL.indexOf(".md") > -1) newURL = forwardingURL.replace(".md",""); } else { - // DOCS ARCHIVE CHECK -{% for item in site.data.docsarchive.docker-compose %} - if (forwardingURL == "/{{ item[0] }}/") - { - console.log("Found via Docker Compose file for Archive"); - gonnaFwd = true; - archive = true; - // make it so redirects cascade; first, use the base URL, then append path - baseURL = "{{ site.url }}"; - newURL = forwardingURL; - }{% endfor %} - -if (archive==false) { // CSV CHECK {% for item in site.data.redirects %} var redirectVal = {{ item | jsonify }}; @@ -53,8 +40,8 @@ if (archive==false) { newURL = forwardingURL.replace(redirectVal.source,redirectVal.destination); } {% endfor %} -} // end of check for archive } // end of check for .md + var path = window.location.pathname.replace("#",""); var phrase = decodeURIComponent(path.replace(/\/+/g, ' ').trim());