[GH-ISSUE #67] links generated with incorrect folder #48

Closed
opened 2026-03-01 14:40:08 +03:00 by kerem · 4 comments
Owner

Originally created by @danhimalplanet on GitHub (Jan 31, 2018).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/67

I have a simple bookmark export file containing 1 url

https://gist.github.com/danhimalplanet/444a7bc30b34d249d4429527c78f5792

➜ ./archive.py ~/Downloads/bookmarks_1_30_18.html 2>&1 >/dev/null
➜ echo $?
0

this generates 'html/archive/index.html' https://gist.github.com/danhimalplanet/ac212bc2cd0047807ede39ba20934330

the generated index.html has relative links like:

'html/archive/archive/1517380882/screenshot.png'

the screenshot relative link is:

'html/archive/archive/1517380882/screenshot.png'

There is an extra 'archive' in the 2 links.

I can make this work if I symlink a directory 'archive' in 'html/archive' to point 1 directory up from 'html/archive'. That seems like a hack, or I'm doing something wrong.

Originally created by @danhimalplanet on GitHub (Jan 31, 2018). Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/67 I have a simple bookmark export file containing 1 url https://gist.github.com/danhimalplanet/444a7bc30b34d249d4429527c78f5792 ➜ ./archive.py ~/Downloads/bookmarks_1_30_18.html 2>&1 >/dev/null ➜ echo $? 0 this generates 'html/archive/index.html' https://gist.github.com/danhimalplanet/ac212bc2cd0047807ede39ba20934330 the generated index.html has relative links like: 'html/archive/archive/1517380882/screenshot.png' the screenshot relative link is: 'html/archive/archive/1517380882/screenshot.png' There is an extra 'archive' in the 2 links. I can make this work if I symlink a directory 'archive' in 'html/archive' to point 1 directory up from 'html/archive'. That seems like a hack, or I'm doing something wrong.
kerem 2026-03-01 14:40:08 +03:00
Author
Owner

@pirate commented on GitHub (Feb 12, 2018):

Thanks for reporting this, I'm probably just doing a bad path concatenation somewhere.

<!-- gh-comment-id:364860943 --> @pirate commented on GitHub (Feb 12, 2018): Thanks for reporting this, I'm probably just doing a bad path concatenation somewhere.
Author
Owner

@InconsolableCellist commented on GitHub (Apr 1, 2018):

I have the same issue. The files generate properly but they're linked improperly, though it doesn't affect the PDF and screenshot links. I also see a png file that has a .png.html extension in the link

<!-- gh-comment-id:377737583 --> @InconsolableCellist commented on GitHub (Apr 1, 2018): I have the same issue. The files generate properly but they're linked improperly, though it doesn't affect the PDF and screenshot links. I also see a png file that has a .png.html extension in the link
Author
Owner

@InconsolableCellist commented on GitHub (Apr 1, 2018):

As a workaround to the ./archive problem I made a symlink in the local dir to ./archive, but this only seems to work some of the time, maybe? I didn't dig deep yet, there were a few issues I was having at once.

<!-- gh-comment-id:377737608 --> @InconsolableCellist commented on GitHub (Apr 1, 2018): As a workaround to the ./archive problem I made a symlink in the local dir to ./archive, but this only seems to work some of the time, maybe? I didn't dig deep yet, there were a few issues I was having at once.
Author
Owner

@pirate commented on GitHub (Apr 17, 2018):

Found and fixed as of: 1776bdf

Please pull and let me know if it works!

(Make sure to back up your archive beforehand in case anything gets messed up, this is still BETA code)

<!-- gh-comment-id:381991129 --> @pirate commented on GitHub (Apr 17, 2018): Found and fixed as of: 1776bdf Please pull and let me know if it works! (Make sure to back up your archive beforehand in case anything gets messed up, this is still BETA code)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ArchiveBox#48
No description provided.