User tests: Successful: Unsuccessful:
Every statis:$base['path']
is prefixed with / except $_SERVER[]
ones. This leads to URLs like
http://xyz.decli instead of http://xyz.de/cli
to be sure that this does not happen a check if static:$base['path']
is prefixed correctly bevor returning the base path is added.
This issue exists in J4 and J5
Route::link('site', 'index.php?SomeValidURL', true, true, true);
php cli/joomla.php scheduler:run -i <TASKID> --live-site 'http://localhost/'
Task#TASKID 'TASKNAME' exited with code 5 in 14.10 seconds.
successful run
Please select:
Documentation link for docs.joomla.org:
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed
Status | New | ⇒ | Pending |
Category | ⇒ | Libraries |
@richard67 no. As mentioned in the issue it is a different place which needs to be fixed.
Labels |
Added:
PR-4.4-dev
|
It's more readable to use ltrim($path, '/') . '/' ...
also reduces the if a / exists
Title |
|
Labels |
Added:
Feature
|
It's more readable to use
ltrim($path, '/') . '/' ...
also reduces the if a / exists
I've done the requested change @HLeithner
This pull request has been automatically rebased to 5.3-dev.
@svanschu Will this PR here fix your issue #42859 ? If yes, then please mention it at the top of the PR before the Summary of Changes as shown in our PR template:
Pull Request for Issue #42859 (with a space after the issue number so GitHub will create a proper link).
And close the issue as we close issues when we have PRs to fix them.
Thanks in advance.