szabodanika / microbin

A secure, configurable file-sharing and URL shortening web app written in Rust.
https://microbin.eu
BSD 3-Clause "New" or "Revised" License
2.65k stars 163 forks source link

CSS not found after updating to 1.2.1 #160

Closed Chickensoupwithrice closed 1 year ago

Chickensoupwithrice commented 1 year ago

Hey there, the /water.css (as well as favicon and logo) now returns 404 since I updated to version 1.2.1 (was previously on 1.1.0)

Here's a screenshot as proof

My bin is running on https://bin.sealight.xyz

Previously when running 1.1.0 I had no trouble loading up water.css or any of the other files (logo, favicon) not sure what's happened?

image

szabodanika commented 1 year ago

Hi, can you share what parameters you set on microbin? To me it seems like you specified a public path but used only domain name without the protocol. Try setting https://bin.sealight.xyz instead of bin.sealight.xyz or not setting a public path at all, as it is not required in your case as far as I can tell. This is likely also the reason why the navigation links at the top redirect you to /bin.sealight.xyz/page/bin.sealight.xyz/bin.sealight.xyz... instead of https://bin.sealight.xyz.

Ideally, MicroBin should either validate this input or automatically append the protocol, seems like a pretty easy mistake to make as a user and it breaks the app entirely.

Chickensoupwithrice commented 1 year ago

Ahhh, yeah that fixed it! I think previous versions may not have required this? Or at least the docs that came bundled with my old installation of microbin didn't seem to specify that the protocol was also necessary.

Thank you for your work on microbin and your quick response! :)