Page MenuHomeGitPull.it

Do a LibreTime pull request to fix their widgets with absolute URLs
Closed, ResolvedPublic2 Points

Description

LibreTime provides this widget:

image.png (418×736 px, 19 KB)

Served here:

https://director.border-radio.it/embed/weekly-program

The problem is that the internal resources are expressed with an absolute URL and this may be completely wrong and broken when using an HTTP proxy.

We should do a LibreTime pull request to fix their widgets adopting relative URLs.

In short we edited these lines dropping the Application_Common_HTTPHelper::getStationUrl() and just setting the relative pathname starting with slash:

https://github.com/LibreTime/libretime/blob/83862cfb8e5c1062e1ba48bdc322d257cc1e1ce2/airtime_mvc/application/controllers/EmbedController.php#L92-L101