Bugfix: media links are incorrect when the trailing slash is missing
See original GitHub issueDescribe 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
- Go to /admin/core/snapshot/
- Pick any item and open media in a new tab:
- Open the same item via its main link and then open media:
- Open a link from the “main” media folder. It should work. Eg
/archive/1608817286.406686/media/introduction%20to%20using%20fish%20shell-w4C9oswxUM8.webm
- 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:
- Created 3 years ago
- Reactions:1
- Comments:6 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This is related to this: https://github.com/ArchiveBox/ArchiveBox/issues/487 I will give it a check next week.
I think I fixed this in v0.5.4, give it a try: