photo-stream icon indicating copy to clipboard operation
photo-stream copied to clipboard

BASEURL seems not having any effect

Open KarstenRiisgaard opened this issue 2 years ago • 4 comments

Trying to deploy to my website's subfolder (eg. www.myserver.com/mydir/) so I have set BASEURL in .env correspondingly.

However, it seems there is no effect of doing this, not in HTML Header or in the generated links, which still looks like eg.: href="/css/master.css" - using absolute path and referencing the webserver's root, not my subfulder (/mydir/ in the example mentioned before).

KarstenRiisgaard avatar Oct 17 '22 16:10 KarstenRiisgaard

To be honest, I never tested this myself. Guess there is a reason the initial creator of Photo Stream added a warning to that setting. :D I labeled this as bug for now, going to look into it once I got some spare time.

waschinski avatar Oct 24 '22 22:10 waschinski

Found a way to make it work. Just add baseurl and urlto _config.yml as in the old version and it will work as expected. If you want to use the download option you should also change in line 40 of photo.html image.path to image.path | relative_url. As far as my testing has gone everything else should work correctly.

LucaDanelutti avatar Oct 30 '22 09:10 LucaDanelutti

I also had this problem, and LucaDanelutti's post fixed it for me. Add baseurl: "something/" to _config.yml. The BASEURL variable inside .env doesn't seem to get wired up to anything.

WarrenWilkinson avatar Jul 17 '23 16:07 WarrenWilkinson

Hey everyone, thanks for all the feedback, I will try to add it to the repo soon and give that change a go myself.

waschinski avatar Jul 17 '23 20:07 waschinski