Skip to content

Commit

Permalink
Redirects not working
Browse files Browse the repository at this point in the history
Due to not adding a trailing `/` redirects were not working.

For example, going to kompose.io/docs/user-guide.md will appear as
plaintext html, adding a trailing / creates an index.html in the
directory and correctly redirects the user.
  • Loading branch information
cdrage committed Oct 11, 2017
1 parent cfbc83a commit 24a8568
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion script/sync-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ for filename in *.md; do
jekyll="---
layout: default
permalink: /$name/
redirect_from: \"/docs/$name.md\"
redirect_from:
- /docs/$name.md/
---
"
echo -e "$jekyll\n$(cat $filename)" > $filename
Expand Down

0 comments on commit 24a8568

Please sign in to comment.