Skip to content

Make download URL relative from subdirectory ('./') vs relative from root ('/') - #45

Open
rbruels wants to merge 1 commit into
daniel-j:masterfrom
rbruels:bruels/relative-download-url
Open

Make download URL relative from subdirectory ('./') vs relative from root ('/')#45
rbruels wants to merge 1 commit into
daniel-j:masterfrom
rbruels:bruels/relative-download-url

Conversation

@rbruels

@rbruels rbruels commented Feb 22, 2025

Copy link
Copy Markdown

Pretty straightforward change — this changes the download link to be relative to the current directory, rather than relative to the root.

I host the site at a subdirectory which works great except that the download link gets set to /[file] — i.e. pointed to a file at the root of the site — and all download links 404. This resolves that issue.

For sites operating at the root (i.e. send.djazz.se) this will still point the download to the correct location.

(Love this app and use the hell out of it @daniel-j so thank you!)

@hmoffatt

hmoffatt commented Jun 9, 2025

Copy link
Copy Markdown

Thanks this works well for me.

@rbruels

rbruels commented Jan 2, 2026

Copy link
Copy Markdown
Author

@daniel-j Just noticing I still have this open. Do you want to integrate this change?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants