Merge pull request #4455 from daattali/patch-2

Merge pull request 4455
This commit is contained in:
jekyllbot 2016-02-02 16:59:24 -08:00
commit b0d6988c1d
1 changed files with 5 additions and 0 deletions

View File

@ -99,4 +99,9 @@ This can be fixed by removing the following line from your `_config.yml` file:
relative_permalinks: true
{% endhighlight %}
### Permalinks no longer automatically add a trailing slash
In Jekyll 2, any URL constructed from the `permalink:` field had a trailing slash (`/`) added to it automatically. Jekyll 3 no longer adds a trailing slash automatically to `permalink:` URLs. This can potentially result in old links to pages returning a 404 error. For example, suppose a page previously contained the YAML `permalink: /:year-:month-:day-:title` that resulted in the URL `example.com/2016-02-01-test/` (notice the trailing slash). In Jekyll 3, the URL for the same page is `example.com/2016-02-01-test`, and consequently any links to the old URL will result in a 404 error. In order to maintain the same URLs and avoid this problem, a trailing slash should be added to the `permalink:` field, for example `permalink: /:year-:month-:day-:title/`.
_Did we miss something? Please click "Improve this page" above and add a section. Thanks!_