Verified Commit d5adf548 authored by Allen Mak's avatar Allen Mak

Update redirects.

Generated redirects will go to the appropriate slug instead of the wiki index. This massively improves the chances of someone reading/finding the information they wanted since we all know users will not click more than once to get to what they want.
parent b06a6541
......@@ -51,3 +51,5 @@ cp src/favicon/* public/ || echo "[build.sh] Failure."
#this portion can be removed after gitlab fixes custom 404s
echo [build.sh] Generating redirects…
cat -n src/redirect/redirect.txt | while read n f; do cp src/redirect/redirect.html $f || echo "[build.sh] Failure."; done
#fix redirects to slugs instead of wiki index
cat -n src/redirect/redirect.txt | while read n f; do find public/ -name $f && sed -i "s|gitlab.io\/|gitlab.io\/${f%.html}\/|g" $f; done
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment