question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

URLs 404 when given a trailing slash /

See original GitHub issue

Bug Report

Steps to reproduce

Go to any page path and add a trailing slash / to the end Example: /#/hello/

What is current behaviour

The page apth /#/hello/ will 404

What is the expected behaviour

That the page requested is shown and works the same as /#/hello

Other relevant information

No

  • Bug does still occur when all/other plugins are disabled?

  • Your OS: Windows 10

  • Node.js version: 8.11.3

  • npm/yarn version: 5.6.0

  • Browser version: Chrome Version 79.0.3945.130

  • Docsify version: latest unpkg (4.10.2)

  • Docsify plugins: search

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:2
  • Comments:14 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
trusktrcommented, Jun 8, 2020

I think we can default to README.md by matter of the existing conventions, and we can also fall back to index.md if README.md is not found. Thoughts? *#!/*JoePea

On Mon, Jun 8, 2020 at 11:42 AM Kosala Nuwan Perera < notifications@github.com> wrote:

In GitHub Pages, isn’t README.md is the index.html or default.html behavior? I mean it would make more sense to have a README.md as a convention.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/docsifyjs/docsify/issues/1018#issuecomment-640803482, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACIVTW5D6WZPWFIKE3S7ADRVUWIXANCNFSM4KTDGRKQ .

1reaction
kosalanuwancommented, Jun 8, 2020

In GitHub Pages, isn’t README.md is the index.html or default.html behavior? I mean it would make more sense to have a README.md as a convention.

Read more comments on GitHub >

github_iconTop Results From Across the Web

PM34409: Trailing slash in URL results in HTTP 404 - IBM
HTTP requests that refer to a friendly URL that contains a trailing slash (/) result in status code 404. Problem conclusion. Trailing slashes...
Read more >
Trailing slash added to user-defined URL > 404 on file links
It seems that The Event Calendar adds trailing slashes to user-defined event URLs, which causes 404 errors when linking to a pdf, for...
Read more >
Trailing Slash added to Site giving 404 error - Google Support
The moment I published the site gives me a 404 error. The sharing permissions are correct but Google adds a trailing slash to...
Read more >
add trailing slash to 404 url so it can be redirected
If all of your URLs end in a trailing slash, then one way to address this is to redirect those that do not...
Read more >
Should You Have a Trailing Slash at the End of URLs? - Ahrefs
In most cases, if you add a trailing slash to a file such as .html, .php, .js, .css, .pdf, .jpg, etc., it won't...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found