Title: BUG: ajax url hardcoded
Last modified: October 30, 2025

---

# BUG: ajax url hardcoded

 *  Resolved [Bas van der Togt](https://wordpress.org/support/users/basvandertogt/)
 * (@basvandertogt)
 * [6 months, 2 weeks ago](https://wordpress.org/support/topic/bug-ajax-url-hardcoded/)
 * The ajax url is hardcoded in form_addition.js
   Line 52: url: ‘/wp-admin/admin-
   ajax.php’,
 * In a Bedrock installation, all ajax calls will fail because this URL is incorrect.
   
   To fix this, please use window.ajaxurl instead of the static path ‘/wp-admin/
   admin-ajax.php’.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Web Whales](https://wordpress.org/support/users/webwhales/)
 * (@webwhales)
 * [5 months ago](https://wordpress.org/support/topic/bug-ajax-url-hardcoded/#post-18752211)
 * Thanks for reporting this, the hardcoded path was not the correct implementation.
   The hardcoded path indeed breaks on Bedrock and subdirectory installations.
 * We’ve updated the plugin to use WordPress it’s `admin_url()` php function instead,
   which correctly handles all installation types. This fix is included in the latest
   release.

Viewing 1 replies (of 1 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fbug-ajax-url-hardcoded%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/mailplus-forms/assets/icon.svg?rev=2655132)
 * [Spotler Mail+ Forms](https://wordpress.org/plugins/mailplus-forms/)
 * [Support Threads](https://wordpress.org/support/plugin/mailplus-forms/)
 * [Active Topics](https://wordpress.org/support/plugin/mailplus-forms/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mailplus-forms/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mailplus-forms/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Web Whales](https://wordpress.org/support/users/webwhales/)
 * Last activity: [5 months ago](https://wordpress.org/support/topic/bug-ajax-url-hardcoded/#post-18752211)
 * Status: resolved