Problem/Motivation

Currently the wiki uses Markdown-format links, which as per GitHub's documentation are required to be absolute.

If your pages are rendered with Markdown, the link syntax is [Link Text](full-URL-of-wiki-page).
With MediaWiki syntax, the link syntax is [[Link Text|nameofwikipage]].

This means that the existing links break if the wiki is moved to a different repo or hosted elsewhere.

Proposed resolution

Modify all of the links to use the MediaWiki syntax, which supports relative links.

Comments

froboy created an issue. See original summary.

froboy’s picture

Assigned: froboy » podarok
Status: Active » Needs review

I used a regex to do this:

Find: \[(.*?)\]\(https://github.com/ymcatwincities/openy/wiki/(.*?)\)
Replace: [[$1|$2]]

This properly fixed all but one link, which had parenthesis in the title. I fixed that one manually.

This is committed in https://git.drupalcode.org/issue/openy_marketing_wiki-3251954/-/commit/0... and will be resolved with #3251954: Review Community Guidelines Section Pages

podarok’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.