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.

Bugfix: media links are incorrect when the trailing slash is missing

See original GitHub issue

Describe the bug

When I navigate to the media folder from /admin/core/snapshot/ as opposed to a single archived item, I am redirected to /media folder and not /media/. The one without a slash generates faulty links.

Steps to reproduce

  1. Go to /admin/core/snapshot/
  2. Pick any item and open media in a new tab:
image
  1. Open the same item via its main link and then open media:
image
  1. Open a link from the “main” media folder. It should work. Eg /archive/1608817286.406686/media/introduction%20to%20using%20fish%20shell-w4C9oswxUM8.webm
  2. Open a link from the “snapshot” index media folder. It should be broken. Eg /archive/1608817286.406686/introduction%20to%20using%20fish%20shell-w4C9oswxUM8.webm

Screenshots or log output

Software versions

  • OS: Ubuntu 20.04.1
  • ArchiveBox version: 0.5.0 docker latest
  • Python version: n/a docker
  • Chrome version: n/a

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
cdvv7788commented, Dec 24, 2020

This is related to this: https://github.com/ArchiveBox/ArchiveBox/issues/487 I will give it a check next week.

0reactions
piratecommented, Jan 30, 2021

I think I fixed this in v0.5.4, give it a try:

docker build -t archivebox:dev https://github.com/ArchiveBox/ArchiveBox.git#dev
docker run -v $PWD:/data archivebox:dev ...
``
Read more comments on GitHub >

github_iconTop Results From Across the Web

WGET paths are not working as expected with trailing slashes ...
Wget replaces src paths with relative paths. When there is a trailing slash, the relative path fails to point to the correct source....
Read more >
How to fix internal redirects from trailing slash mismatch?
This issue means that the one URL on your site is redirected to another internal URL. The presence/absence of a trailing slash is...
Read more >
Missing trailing slash in URL on subpages resulting in Moz PA ...
Even here in moz community I am noticing it. Is it really a factor to have an ending slash on the page? Does...
Read more >
Changelog - WP Rocket
Bugfix : Fixes an issue with WordPress feeds being cached by default. ... trailing slash permalink settings when rewrite rules are not present...
Read more >
Release Notes - MkDocs
Bugfix : Relative links will always render with a trailing slash (#3022) ... Bugfix for "readthedocs" theme (regression in 1.3.0): add missing ......
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