The file /srv/http/components/com_mycomponent/ajax/editAction.php
was initialized with https://github.com/joomla/joomla-cms/issues/34586#issuecomment-865080001, except that we use
define('JPATH_BASE', __DIR__ . '/../../../');
The server root is at /srv/http
. However, Uri::root()
would return http://localhost/components/com_mycomponent/ajax/
.
How do I make it return http://localhost/
?