• Resolved chickendipper

    (@chickendipper)


    Hi,
    I use WPGhost to hide standard wordpress paths and have noticed that if I change the /wp-json url to anything apart from the default it breaks the search.
    Is there any way to stop this happening at all?

    Thanks

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author wpdreams

    (@wpdreams)

    Hi,

    The plugin does not use the wp-json endpoints, but the wp-admin/admin-ajax.php endpoint. However it’s not hard coded, so it’s requested from WordPress core. I suspect that might be the issue? Make sure that’s not changed or hidden.

    It wouldn’t make any difference of changing the admin-ajax URL anyways, as it’s a public resource used by the WordPress Core for XHR requests, so even if you were to change it it’s immediately revealed. That should resolve the issue.

    All the best,
    Ernest

    Thread Starter chickendipper

    (@chickendipper)

    Sorry little confused. Make sure what is not changed or hidden?

    The issue only occurs if I change the wp-json path. I can change admin-ajax.php without issue.

    I have the plugin set to use its own ajax in settings also.

    Plugin Author wpdreams

    (@wpdreams)

    I’m sorry, I wasn’t clear. Make sure the admin-ajax URL is not changed.

    Can I take a look at this issue somewhere?

    All the best,
    Ernest

    Thread Starter chickendipper

    (@chickendipper)

    Hi,

    Not a problem although it already is and has no impact.

    You can see the issue here: https://ukradio.live currently admin-ajax.php is set as just ajax.php and wp-json path is not modifed and search works.
    Now if I change wp-json search will break.

    Thank you

    Plugin Author wpdreams

    (@wpdreams)

    Okay! Can you change it so it’s broken? I will run a few tests to see what changes.

    Thread Starter chickendipper

    (@chickendipper)

    Yep, I have changed wp-json to api now ??

    Plugin Author wpdreams

    (@wpdreams)

    Thanks! I tried it again, but everything works as before: https://i.imgur.com/qSRU2yl.png

    Do you see something different?

    Thread Starter chickendipper

    (@chickendipper)

    Ok that is very odd as I was tinkering last night with it and thought I had pin pointed what was breaking it, but now it’s fine.

    Well in that case it seems the issue is resolved at the moment!

    What would happen before, you would type in the search but nothing would happen at all no spinner or results would show.

    My apologies and thank you for checking.

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