WordPress.org

Forums

P2
P2 search term highlighting breaks links in which term appears (9 posts)

  1. mpclark
    Member
    Posted 1 year ago #

    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 http://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?

    http://wordpress.org/extend/themes/p2/

  2. Aditya Pandey
    Member
    Posted 1 year ago #

    Can you give me URL where this issue belongs? And what keyword to search?

  3. esmi
    Forum Moderator
    Posted 1 year ago #

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

  4. mpclark
    Member
    Posted 1 year ago #

    @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/microsoft-Search-Results-Newsdesk-@-xxx.png

  5. Aditya Pandey
    Member
    Posted 1 year ago #

    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).

  6. mpclark
    Member
    Posted 1 year ago #

    @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 ;)

  7. Aditya Pandey
    Member
    Posted 1 year ago #

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

    Looks fine in other installation.

  8. mpclark
    Member
    Posted 1 year ago #

    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...

  9. esmi
    Forum Moderator
    Posted 1 year ago #

    http://make.wordpress.org/accessibility/ and http://make.wordpress.org/support/ are just two of the many wordpress.org blogs running P2 if you want to have a look at them.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags