niccokunzmann / open-web-calendar

Embed a highly customizable web calendar into your website using ICal source links
https://open-web-calendar.quelltext.eu
GNU General Public License v2.0
212 stars 70 forks source link

owc is rendering any text as a location, even if it's an URL. #395

Open kamazeuci opened 5 months ago

kamazeuci commented 5 months ago

I think OWC putting a link to OSM is wonderful. Although I personally don't need it because I use gancio which already has the OSM links. the thing is that some events say "Location:" and then are followed by an URL. These are online events. But OWC doesn´t understand that and uses the URL to make a search query on OSM.

Proposed Solution:

One solution could be the ability to turn off and on OSM link rendering in a calendar. Something Like: Would you like to make OWC compose an OpenStreetMap search query link when it finds the word "Location"?

Another solution would be to have a condition in which, if the string "http" or "www" is found after "Location", OWC will not try to compose the link.

more info on the issue I originally filed at gancio, but it was not a thing of theirs: https://framagit.org/les/gancio/-/issues/402

Thanks image image


We're using Polar.sh so you can upvote and help fund this issue. We receive the funding once the issue is completed & confirmed by you. Thank you in advance for helping prioritize & fund our work.

Fund with Polar

niccokunzmann commented 5 months ago

Thanks for reporting! Hm, yes, that is a good idea! I think that one can be sure that if there is a URL in this field, that the URL should be opened and not the map.

I also link this as reference: