Support » Plugin: amr ical events lists » Anchor links in Event Description Parse Wrong

  • I use anchors in iCal event descriptions so that when users view the events list on my site, they have pretty, clickable links instead of displaying the raw html. Example of what I’m adding to iCal below.

    <a href="www.external-event-page.com">My Pretty Link</a>

    This has worked for years, but recently the links stopped working. When you click on a link in an event description, the event page’s link is being added to the beginning of the href attribute like this:

    http://www.mywebsite.com/events/www.external-event-page.com

    I tried rolling back all the way to version 2.0 of the events plugin, but it makes no difference.

    What could be causing this?

    • This topic was modified 5 months, 2 weeks ago by quicksheep.
    • This topic was modified 5 months, 2 weeks ago by quicksheep.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author anmari

    (@anmari)

    Plugin applies wordpress function https://codex.wordpress.org/Function_Reference/make_clickable to the description. It may be treating your anchors as relative since they do not have a protocol.
    Try using the full url rather, including the protocol eg http://.. or https://

    Hi Anmari,

    Full URLs with “http://” in the href attribute of an anchor, the link still becomes ruined.

    http://www.external-event-page.com

    becomes

    http://www.mywebsite.com/events/http%3A/www.external-event-page.com

    It looks like it’s choking on the colon though in this case. I tried replacing the colon in the URL with numbered character entity instead “:” and the url went to the correct place. Is there some way to make the plugin do this automatically?

    Plugin Author anmari

    (@anmari)

    Sorry I didn’t see you had replied – the new forum sorting of post updates is a bit odd sometimes.

    sorry can’t help further.
    event descriptions not really supposed to contain html – not all calendar systems cope with it.

    If you left it as a normal url, not a anchor link, the wordpress ‘make clickable’ function would turn it into a link anyway.

    Possibly this is a bug in the function? You could try searching on that.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.