Closed akoeplinger closed 8 years ago
We also use colons in permalinks to preserve legacy MediaWiki URLs for https://github.com/biopython/biopython.github.io - e.g.:
$ head -n 8 wiki/Category_Cookbook.md
---
title: Cookbook Entries
permalink: wiki/Category:Cookbook
layout: tagpage
tag: Cookbook
---
The entries contained in the Cookbook category are designed to
We link to them using e.g. from wiki/Documentation.md
using:
- [Wiki documentation](Category%3AWiki_Documentation "wikilink")
Note the colon in the relative link is escaped in the Markdown as %3A
- this was working until the recent Jekyll update.
We also use colons with redirect_from
, e.g.
$ head wiki/GSoC2011_mtrellet.md
---
title: GSoC2011 mtrellet
permalink: wiki/GSoC2011_mtrellet
layout: wiki
redirect_from:
- /wiki/User:Mtrellet
---
Author & Mentors
----------------
I've just filed https://github.com/jekyll/jekyll/issues/5284 on this.
@parkr it looks like you were involved in the original decision here.. can you weigh in a bit on the reasoning and possible workarounds?
The reasoning: jekyll/jekyll-paginate#8
Does redirect_from: Category%3AWiki_Documentation
produce the desired output? I tested locally and the build completes.
@benbalter yes, that seems to work and produces the correct filename with colon on disk.
Percent encoding the colons in redirect_from
alone does not fix jekyll build
for me - there are likely other issues including permalink
for us, hopefully will be resolved via https://github.com/jekyll/jekyll/issues/5284
Closing because this is a Jekyll core issue, rather than specific to this plugin.
Add this to the frontmatter of a page:
Since Jekyll 3.2 this now throws the following error during build:
The culprit seems to be this PR in Jekyll https://github.com/jekyll/jekyll/pull/5069 which throws this error now while it worked in the past.
I noticed this in one of my site which has a large collection of legacy links from MediaWiki which contain colons in the URL.