send2ereader icon indicating copy to clipboard operation
send2ereader copied to clipboard

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

Open rbruels opened this issue 1 year ago • 1 comments

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!)

rbruels avatar Feb 22 '25 19:02 rbruels

Thanks this works well for me.

hmoffatt avatar Jun 09 '25 10:06 hmoffatt

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

rbruels avatar Jan 02 '26 00:01 rbruels