Skip to content

slash in page name

Tristano Ajmone edited this page Nov 27, 2016 · 4 revisions

Slash Experiment

This page was created in GitHub's Web-UI.

  • page name: slash/in page name
  • filename: slash-in-page-name.md

I wanted to test if using a slash in the page name would (could) be a means of creating a subfolder. It didn't -- page name simply got sanitized.

Backslash Experiment

I also carried a similar test with backslash, and created a page in GitHub's Web-UI:

  • page name: backslash\in page name
  • filename: backslash\in-page-name.md

But it created a file that caused problems in Window:

GIT ERROR MESSAGE: unable to create file backslash\in-page-name.md (No such file or directory)

So, I had to destroy the page on the Wiki, else it would have impeded maintaining the Wiki locally.

This didn't come as a surprise since it is mentioned in GitHub's Help:

Don't use the following characters in your wiki page's titles: \ / : * ? " < > |. Users on certain operating systems won't be able to work with filenames containing these characters.

But this experiment showed that the Wiki Web-UI sanitizes the forward-slash, but for some reasons didn't sanitize the backslash.

Clone this wiki locally