Skip to content

URLs for folders vs pages without extension #1

Closed

Description

@peterjc

In general GitHub Pages / Jekyll will accept an extension-less URL or with a .html suffix, e.g.

This is good because the old wiki would use the extension less URL, here http://www.open-bio.org/wiki/BOSC_2010

That works fine unless there is a sub-folder with the same stem, e.g. the old wiki uses this URL as an important page: http://www.open-bio.org/wiki/BOSC

Unfortunately apparently because the folder /wiki/BOSC/ exists, http://obf.github.io/wiki/BOSC is mapped to http://obf.github.io/wiki/BOSC/ which fails.

Activity

  1. peterjc commented on Nov 23, 2015

    @peterjc
    MemberAuthor
  2. peterjc commented on Jan 10, 2016

    @peterjc
    MemberAuthor

    There are currently ten problem pages/folders, BOSC/ and BOSC_2006/ to BOSC_2015/ included.

  3. peterjc commented on Feb 1, 2016

    @peterjc
    MemberAuthor

    Possible workaround, untested, create http://obf.github.io/wiki/BOSC/index.html to point at http://obf.github.io/wiki/BOSC.html

  4. peterjc commented on Jul 14, 2016

    @peterjc
    MemberAuthor

    peterjc/mediawiki_to_git_md#18 lets us avoid this issue, would need to re-run the import to test this on the OBF wiki

  5. shreyateeza commented on Oct 24, 2018

    @shreyateeza

    @peterjc Can I work on this issue? I am Outreachy aspirant.

  6. peterjc commented on Oct 24, 2018

    @peterjc
    MemberAuthor

    This issue (and the associated repository for GitHub pages) related to an attempted migration from MediaWiki to GitHub pages for the content currently on http://www.open-bio.org/

    The migration was done using an older version of https://github.com/peterjc/mediawiki_to_git_md/ and it seems likely that using the latest version would cope with slashes in page names peterjc/mediawiki_to_git_md#18 - it worked for Biopython but that had relatively few nested pages.

    If you want to work on this you'd need your own GitHub repository with GitHub Pages turned on, and a copy of the OBF MediaWiki dump.

  7. peterjc commented on Jan 26, 2025

    @peterjc
    MemberAuthor

    Resolved with https://github.com/OBF/wiki/ which was a fresh attempt at the MediaWiki to Markdown in git process using an updated version of https://github.com/peterjc/mediawiki_to_git_md/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions