As the following line is hardcoded to an absolute URL, the plugin settings cannot be saved as it tries to route to example.com/api/xx rather than example.com/forum/api/xx therefore the request fails.
|
$.get('/api/admin/plugins/calendar/save', { settings: JSON.stringify(settings) }, function () { |
Can this be amended to return the forum URL in order to capture cases where the forum is either running on the root path or within a 'directory'?
Thanks,
Jordan