• I’m at a media org that uses P2 as a newsdesk, to prioritise and assign stories to writers. Our news editor records what information we know about a story as well as URLs to further information in P2 posts.

    We’ve noticed, though, that when we search for an entry (say by company name) and posts are returned, all occurrences of the search term will be highlighted by being made white on an orange background. This has the effect of making any raw URLs that contain the search term break — only the part of the URL up to where the highlight starts is an active (and broken!) link, and everything past the highlight is just shown as regular text.

    To see this on your own installation, try putting “More at https://www.microsoft.com” into a post and then searching for “microsoft”. In the results, the link you just typed will be broken.

    Does anyone know of a quick fix, or where I should report this?

    https://www.ads-software.com/extend/themes/p2/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Can you give me URL where this issue belongs? And what keyword to search?

    Has the theme been modified? Or additional plugins installed? I’m not seeing any search term highlighting on the P2 blog that I manage.

    Thread Starter Mike Clark

    (@mpclark)

    @aditya – It’s a private installation, so sadly I can’t link to it. The steps to replicate given above have been tested on it, though.

    @esmi – Good question. I’ve deactivated all the plugins on the site except for “Registered users only”, which we use to keep it private. The theme is plain vanilla and unaltered. The problem is still there.

    There’s a screenshot showing the issue here:

    https://www.sjb.co.uk/wp-content/uploads/[email protected]

    Without knowing site URL it’s almost impossible for us to provide you with specific help.

    EDIT: I also tested with Make WordPress (that also uses P2) and RAW URLs are working fine (both highlighted and non-highlighted).

    Thread Starter Mike Clark

    (@mpclark)

    @aditya, I understand that it is much easier to troubleshoot problems with access to the site, but it just can’t be done in this case. The site contains commercially sensitive information and access is tightly restricted.

    EDIT: Removed unnecessary comment ??

    See this: https://snag.gy/s90rz.jpg

    Looks fine in other installation.

    Thread Starter Mike Clark

    (@mpclark)

    Hmmm. That’s odd. I’ve actually got two different (private) P2 installs, both on different hosts, and they’re both showing the same problem. But yours clearly isn’t.

    I’ve tried disabling that last plugin, and I’ve tried a different browser. Not sure where to look next, TBH. I think I’ll try spinning up a public P2 later to see if it happens again and so folks can take a look if necessary…

    https://make.www.ads-software.com/accessibility/ and https://make.www.ads-software.com/support/ are just two of the many www.ads-software.com blogs running P2 if you want to have a look at them.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘P2 search term highlighting breaks links in which term appears’ is closed to new replies.