Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MediaWiki redirects --> Jekyll's redirection #8

Closed
peterjc opened this issue Mar 4, 2015 · 1 comment
Closed

MediaWiki redirects --> Jekyll's redirection #8

peterjc opened this issue Mar 4, 2015 · 1 comment

Comments

@peterjc
Copy link
Owner

peterjc commented Mar 4, 2015

See https://help.github.com/articles/redirects-on-github-pages/

Consider a MediaWiki page like this from http://biopython.org/wiki/Git which redirects to http://biopython.org/wiki/SourceCode

#REDIRECT [[SourceCode]]

The pandoc GitHub Flavour Markdown output results in a place holder page Git.md with a link to the new page.

What we seem to need to do instead is to add a redirect_from line to the Jekyll header in SourceCode.md, e.g.


---
... existing meta data like title ...
redirect_from: "/wiki/Git"

---

Update: Even easier, we can edit Git.md with the redirect_to tag instead. For instance,


---
title: Git
redirect_to: /wiki/SourceCode

---
This page should redirect you to [SourceCode](SourceCode "wikilink").
@peterjc peterjc changed the title MediaWiki redirects --> Jekyll's redirect_from MediaWiki redirects --> Jekyll's redirection Mar 4, 2015
@peterjc
Copy link
Owner Author

peterjc commented Mar 5, 2015

Appears to be working as of 7144e27

TODO: Use the _config.yml entry baseurl with prefix?

@peterjc peterjc closed this as completed Mar 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant