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 "[] Failure."
#this portion can be removed after gitlab fixes custom 404s
echo [] Generating redirects…
cat -n src/redirect/redirect.txt | while read n f; do cp src/redirect/redirect.html $f || echo "[] 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|\/|\/${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