• Resolved Evandrus

    (@cuffley)


    When I select a search result it takes me to a new url ending with /?highlight

    Is there a way for it to be linked to the original url?

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

    (@codepeople)

    Hello @cuffley

    Thank you very much for using our plugin. The plugin does not modify the URL to search results configure on your website. It adds the highlight parameter if you ticked the “Highlight the terms in resulting page” attribute in the plugin settings page. If you want to remove the parameter from the results page URL, please untick the checkbox in the plugin settings.

    Best regards.

    Thread Starter Evandrus

    (@cuffley)

    Thanks for your reply.

    I don’t have the pro version and the checkboxes are grayed out and set at off, but I still get the highlighted results.

    Plugin Author codepeople

    (@codepeople)

    Hello @cuffley

    Could you please provide the link to the page that contains the search box to check its settings?

    Best regards.

    Thread Starter Evandrus

    (@cuffley)

    Plugin Author codepeople

    (@codepeople)

    Hello @cuffley

    Please follow the steps below:

    1. Open the “/wp-content/plugins/search-in-place/php/searchinplace.clss.php” file with the text editor of your choice.
    2. Go to the piece of code:
    $_link_parts[0] .= ( ( strpos( $_link_parts[0], '?' ) === false ) ? '?' : '&' ) . 'highlight=' . urlencode( $s );

    And commend it as follows:

    // $_link_parts[0] .= ( ( strpos( $_link_parts[0], '?' ) === false ) ? '?' : '&' ) . 'highlight=' . urlencode( $s );

    Please note the plugin does not generate new URLs, it only pass a parameter the resulting pages.

    Best regards.

    • This reply was modified 3 months, 1 week ago by codepeople.
    Plugin Author codepeople

    (@codepeople)

    Hello @cuffley

    We have released a plugin update (just now) that removes the highlight parameter from the URL without affecting the functionality, and you don’t need to edit the plugin files.

    Best regards.

    Thread Starter Evandrus

    (@cuffley)

    Thanks very much.

    I updated the plugin and I no longer have the “? highlight” part in the url which is great.

    But it is still doing the “Highlight the terms in resulting pages” part although this is greyed out in the plugin settings.

    Plugin Author codepeople

    (@codepeople)

    Hello @cuffley

    Yes, it is a plugin feature, we only removed the parameter from the URL and used a different method to tell the page the search term. If you don’t want this feature in your plugin copy, we can customize your plugin copy. In this case, you should request a custom coding service directly from the plugin website:

    https://searchinplace.dwbooster.com/customization

    Best regards.

    Thread Starter Evandrus

    (@cuffley)

    Ok, thanks for all your help. I have tried many search plugins I think yours is far superior.

    Plugin Author codepeople

    (@codepeople)

    Hello @cuffley

    Thank you very much for your words.

    Best regards.

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