[GH-ISSUE #837] Bug: the port number is omitted from [Add to ArchiveBox] link at [Add new URLs to your archive] page footer #2032

Closed
opened 2026-03-01 17:55:57 +03:00 by kerem · 3 comments
Owner

Originally created by @linxiang-dev on GitHub (Aug 27, 2021).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/837

Describe the bug

If the site serviced in https://somedomain.com:20443
The footer Add to ArchiveBox link at the page https://somedomain.com:20443/add will be javascript:void(window.open('http://somedomain.com/add/?url='+document.location.href)); at this moment.
The working link should be javascript:void(window.open('http://somedomain.com:20443/add/?url='+document.location.href));.

Steps to reproduce

  1. click ADD button at the header of page https://somedomain.com:20443/public, the port can be any custom port instead of 443
  2. look for the Add to ArchiveBox link at the footer
  3. the link of Add to ArchiveBox is javascript:void(window.open('http://somedomain.com/add/?url='+document.location.href)); which not work since the site is served on another port

Screenshots or log output

ArchiveBox version

ArchiveBox v0.6.2
Cpython Linux Linux-4.14.24-qnap-x86_64-with-glibc2.28 x86_64
IN_DOCKER=True DEBUG=False IS_TTY=True TZ=UTC SEARCH_BACKEND_ENGINE=ripgrep

[i] Dependency versions:
 √  ARCHIVEBOX_BINARY     v0.6.2          valid     /usr/local/bin/archivebox

 √  PYTHON_BINARY         v3.9.5          valid     /usr/local/bin/python3.9

 √  DJANGO_BINARY         v3.1.10         valid     /usr/local/lib/python3.9/site-packages/django/bin/django-admin.py

 √  CURL_BINARY           v7.64.0         valid     /usr/bin/curl

 √  WGET_BINARY           v1.20.1         valid     /usr/bin/wget

 √  NODE_BINARY           v15.14.0        valid     /usr/bin/node

 √  SINGLEFILE_BINARY     v0.3.16         valid     /node/node_modules/single-file/cli/single-file

 √  READABILITY_BINARY    v0.0.2          valid     /node/node_modules/readability-extractor/readability-extractor

 √  MERCURY_BINARY        v1.0.0          valid     /node/node_modules/@postlight/mercury-parser/cli.js

 √  GIT_BINARY            v2.20.1         valid     /usr/bin/git

 √  YOUTUBEDL_BINARY      v2021.04.26     valid     /usr/local/bin/youtube-dl

 √  CHROME_BINARY         v90.0.4430.93   valid     /usr/bin/chromium

 √  RIPGREP_BINARY        v0.10.0         valid     /usr/bin/rg


[i] Source-code locations:
 √  PACKAGE_DIR           23 files        valid     /app/archivebox

 √  TEMPLATES_DIR         3 files         valid     /app/archivebox/templates

 -  CUSTOM_TEMPLATES_DIR  -               disabled


[i] Secrets locations:
 -  CHROME_USER_DATA_DIR  -               disabled

 -  COOKIES_FILE          -               disabled


[i] Data locations:
 √  OUTPUT_DIR            5 files         valid     /data

 √  SOURCES_DIR           1 files         valid     ./sources

 √  LOGS_DIR              1 files         valid     ./logs

 √  ARCHIVE_DIR           0 files         valid     ./archive

 √  CONFIG_FILE           81.0 Bytes      valid     ./ArchiveBox.conf

 √  SQL_INDEX             212.0 KB        valid     ./index.sqlite3
Originally created by @linxiang-dev on GitHub (Aug 27, 2021). Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/837 <!-- Please fill out the following information, feel free to delete sections if they're not applicable or if long issue templates annoy you. (the only required section is the version information) --> #### Describe the bug <!-- A description of what the bug is, what you expected to happen, and any relevant context about the issue. --> If the site serviced in `https://somedomain.com:20443` The footer *Add to ArchiveBox* link at the page `https://somedomain.com:20443/add` will be `javascript:void(window.open('http://somedomain.com/add/?url='+document.location.href));` at this moment. The working link should be `javascript:void(window.open('http://somedomain.com:20443/add/?url='+document.location.href));`. #### Steps to reproduce <!-- For example: 1. Ran ArchiveBox with the following config '...' 2. Saw this output during archiving '....' 3. UI didn't show the thing I was expecting '....' --> 1. click ADD button at the header of page `https://somedomain.com:20443/public`, the port can be any custom port instead of 443 2. look for the Add to ArchiveBox link at the footer 3. the link of Add to ArchiveBox is `javascript:void(window.open('http://somedomain.com/add/?url='+document.location.href));` which not work since the site is served on another port #### Screenshots or log output <!-- If applicable, post any relevant screenshots or copy/pasted terminal output from ArchiveBox. If you're reporting a parsing / importing error, **you must paste a copy of your redacted import file here**. --> #### ArchiveBox version <!-- Run the `archivebox version` command locally then copy paste the result here: --> ```logs ArchiveBox v0.6.2 Cpython Linux Linux-4.14.24-qnap-x86_64-with-glibc2.28 x86_64 IN_DOCKER=True DEBUG=False IS_TTY=True TZ=UTC SEARCH_BACKEND_ENGINE=ripgrep [i] Dependency versions: √ ARCHIVEBOX_BINARY v0.6.2 valid /usr/local/bin/archivebox √ PYTHON_BINARY v3.9.5 valid /usr/local/bin/python3.9 √ DJANGO_BINARY v3.1.10 valid /usr/local/lib/python3.9/site-packages/django/bin/django-admin.py √ CURL_BINARY v7.64.0 valid /usr/bin/curl √ WGET_BINARY v1.20.1 valid /usr/bin/wget √ NODE_BINARY v15.14.0 valid /usr/bin/node √ SINGLEFILE_BINARY v0.3.16 valid /node/node_modules/single-file/cli/single-file √ READABILITY_BINARY v0.0.2 valid /node/node_modules/readability-extractor/readability-extractor √ MERCURY_BINARY v1.0.0 valid /node/node_modules/@postlight/mercury-parser/cli.js √ GIT_BINARY v2.20.1 valid /usr/bin/git √ YOUTUBEDL_BINARY v2021.04.26 valid /usr/local/bin/youtube-dl √ CHROME_BINARY v90.0.4430.93 valid /usr/bin/chromium √ RIPGREP_BINARY v0.10.0 valid /usr/bin/rg [i] Source-code locations: √ PACKAGE_DIR 23 files valid /app/archivebox √ TEMPLATES_DIR 3 files valid /app/archivebox/templates - CUSTOM_TEMPLATES_DIR - disabled [i] Secrets locations: - CHROME_USER_DATA_DIR - disabled - COOKIES_FILE - disabled [i] Data locations: √ OUTPUT_DIR 5 files valid /data √ SOURCES_DIR 1 files valid ./sources √ LOGS_DIR 1 files valid ./logs √ ARCHIVE_DIR 0 files valid ./archive √ CONFIG_FILE 81.0 Bytes valid ./ArchiveBox.conf √ SQL_INDEX 212.0 KB valid ./index.sqlite3 ``` <!-- Tickets without full version info will closed until it is provided, we need the full output here to help you solve your issue -->
kerem 2026-03-01 17:55:57 +03:00
Author
Owner

@GlassedSilver commented on GitHub (Sep 20, 2021):

Is this fixed? I can't reproduce that bug.

<!-- gh-comment-id:923276193 --> @GlassedSilver commented on GitHub (Sep 20, 2021): Is this fixed? I can't reproduce that bug.
Author
Owner

@pirate commented on GitHub (Sep 21, 2021):

I can't reproduce it either actually. I didn't fix anything related to it, I'll leave it open for a while to see if anyone else reports it.

<!-- gh-comment-id:924438086 --> @pirate commented on GitHub (Sep 21, 2021): I can't reproduce it either actually. I didn't fix anything related to it, I'll leave it open for a while to see if anyone else reports it.
Author
Owner

@pirate commented on GitHub (Jan 19, 2024):

Closing as stale, this link was removed entirely as users should now use the chrome extension instead of a JS bookmark. https://chromewebstore.google.com/detail/archivebox-exporter/habonpimjphpdnmcfkaockjnffodikoj

<!-- gh-comment-id:1900180424 --> @pirate commented on GitHub (Jan 19, 2024): Closing as stale, this link was removed entirely as users should now use the chrome extension instead of a JS bookmark. https://chromewebstore.google.com/detail/archivebox-exporter/habonpimjphpdnmcfkaockjnffodikoj
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#2032
No description provided.