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.

url wrong: url has two slash so that cannot be directed to the right page.

See original GitHub issue

Describe the bug

A clear and concise description of what the bug is.

url in xxx.disqus.com/admin/moderate/approved has two slash(//), which makes it unable to render the comment area. Besides, when using shared links, the same reason will make a same trouble. For more detials, please see here and here.

To Reproduce

Steps to reproduce the behavior:

  1. Go to casbin.org or crystal-lang.org
  2. leave a comment using disqus
  3. copy share link
  4. open share link
  5. The url will have two slash. For example: casbin.org//xxx/yyy/zz

Expected behavior

A clear and concise description of what you expected to happen.

The url should have only one slash. For example: “xxxxx.org/yy/zz”

Screenshots

If applicable, add screenshots to help explain your problem.

Please see the two PRs above.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:14 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
tterbcommented, Jul 16, 2021

@hsluoyz Is that a thread that you’ve already updated the URL for using the URL Mapper I mentioned earlier? Also, could you provide a link to a newly created thread where you’re seeing the issue?

0reactions
hsluoyzcommented, Jul 26, 2021

@tterb thanks for the help! I confirmed that the issue has been fixed. Feel free to close this issue 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issue 339054: sometimes incorrectly appends slash on URLs ...
The problem is almost certainly, as others have said, in the omni-box. The version of the URL that has the slash is present...
Read more >
URL contains a double slash | Sitebulb
A double slash in the URL path is valid and will respond in the browser, but is typically unwelcome, as this could cause...
Read more >
Why google shows the wrong URL with an ending slash in the ...
I checked every url path in my code, made a 301 redirect with htaccess to the right url (without the ending slash), checked...
Read more >
Do browsers ignore slashes in URLs? - Stack Overflow
Note that browsers don't usually modify the URL. Browsers could append a / at the end of a URL, but in your case,...
Read more >
"Double slash in URL" error in Site Audit | Help Center - Ahrefs
Why is it important? ... Most servers are already set up to ignore multiple slashes in the URL path. However, these URLs may...
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