~ 1 min read

Jekyll Redirect Plugin Forcing a File Download

Problem

The redirect was not working. It was forcing a file download but was not redirecting the page. Turns out Jekyll does not correctly parse the case where the redirect_from

Solution

You need to add a trailing slat to the redirect_from:URL i.e. redirect_from: /old_slug/ not redirect_from: /old_slug. Note the trailing slash. This is how it is supposed to be done.