Details
Description
See https://www.blesta.com/forums/index.php?/topic/9306-registering-plugin-action-widget_client_home/
I believe Blesta's expectation is that the plugin action contain a URI without query arguments. In some cases, Blesta may set it's own query arguments, and this can cause a conflict. Nonetheless we should look into why the error occurs and
- figure out why the issue occurs and update this task
- update the Blesta documentation to illustrate this expected restriction
- see if this restriction could be alleviated in the future to allow for query parameters (and if so, create a separate task)
Issue Links
- relates to
-
CORE-2439 Allow query parameters for plugin actions
- Closed
client_controller.php lines 98-101:
$key = str_replace('/', '_', trim($plugin->uri, '/')); $widgets[$key] = [ 'uri' => $this->base_uri . $plugin->uri ];
This key is later used in jquery-client-4.1.0.js line 113:
$('#widget_container_' + this.widget_id).replaceWith(temp);
This is where the error occurs because the the process for forming the key allows characters that are not legal for the jquery expression.