SimulPiscator / AirSane

Publish SANE scanners to MacOS, Android, and Windows via Apple AirScan.
GNU General Public License v3.0
243 stars 26 forks source link

Broken absolute URLs in web interface for .local domain #90

Closed dsiguero closed 2 years ago

dsiguero commented 2 years ago

After setting AirSane up and checking that I was able to acquire images from my OS, I gave the web UI a try. However, both the link to the scanner (and its icon) are broken as it's not taking into account the .local domain for the hostname. But both of them work if I try to access them manually (adding .local).

Current link: http://<hostname>:8090/eSCL/ Expected (working) link: http://<hostname>.local:8090/eSCL/

The Reset link under Server Maintenance is working, as it uses a relative URL, instead of an absolute one.

Could all the URLs be made relative, to solve this issue?

SimulPiscator commented 2 years ago

Thanks for the suggestion, I've made all those links relative.

dsiguero commented 2 years ago

Thank you for the speedy reply and fix! Closing this as it's fixed now. Also kudos for such great project!