Describe the bug
In rss-bridge.js#L17 every bridges URL which begins with www. gets shortened by the function remove_www_from_url() which is called from the rssbridge_list_search() event handler. This breaks some URLs where the remote server can't handle the shortened version. RSS-Bridge itself continues to function, but the link to the remote server is wrong.
Additional context
The remove_www_from_url() function modifies the URLs directly on the DOM a-objects. This is unnecessary in this place, unless I'm not following the code correctly.
Describe the bug In rss-bridge.js#L17 every bridges URL which begins with
www.
gets shortened by the functionremove_www_from_url()
which is called from therssbridge_list_search()
event handler. This breaks some URLs where the remote server can't handle the shortened version. RSS-Bridge itself continues to function, but the link to the remote server is wrong.To Reproduce
SSL_ERROR_BAD_CERT_DOMAIN
error (Depending on your browser)Expected behavior The link should point to the bridges configured
$URI
(In this case: https://www.meteoschweiz.admin.ch/ueber-uns/meteoschweiz-blog.html) (Source)Additional context The
remove_www_from_url()
function modifies the URLs directly on the DOM a-objects. This is unnecessary in this place, unless I'm not following the code correctly.Has been introduced in PR #2952.