? Pending

User tests: Successful: Unsuccessful:

avatar Hackwar
Hackwar
2 Jun 2019

Pull Request for Issue #9010.

This is a new version of #25077, since the CI system somehow fails with that earlier PR.

Summary of Changes

This removes the base tag from the frontend. The idea of the base tag is to define a base for relative URLs. Consider you have the site http://www.example.com/this/is/index.php/with/more/content and all requests should go to the folder http://www.example.com/this/is/, you would set the base tag to exactly that URL. However, we are setting that base tag always to the current URL, which simply is wrong. Even worse, we aren't doing it correctly, because we are forgetting the query part. So we are not setting it to a special path, but are just using the current URL. Now guess what the default value is, when that base tag is NOT set at all. The answer is not "42", but: The current URL.

A quick check shows that neither Wordpress nor Drupal or Typo3 seem to have a base tag in their default output. We are just oh-so-special... Sorry...

Testing Instructions

Apply this change and then check if everything on your site still works as expected.

This would be a fix for an issue that is over 3 years old and that has been discussed several times in the Joomla project... Would be nice to finally solve that.

avatar Hackwar Hackwar - open - 2 Jun 2019
avatar Hackwar Hackwar - change - 2 Jun 2019
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 2 Jun 2019
Category Libraries
avatar franz-wohlkoenig franz-wohlkoenig - change - 2 Jun 2019
Title
Removing base tag from frontend
[4.0] Removing base tag from frontend
avatar franz-wohlkoenig franz-wohlkoenig - edited - 2 Jun 2019
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 2 Jun 2019

close #25077?

avatar Hackwar
Hackwar - comment - 2 Jun 2019

Please wait a moment. I first want to make sure that drone works now.

avatar rdeutz rdeutz - change - 2 Jun 2019
The description was changed
avatar rdeutz rdeutz - edited - 2 Jun 2019
avatar Hackwar Hackwar - change - 2 Jun 2019
Labels Added: ?
avatar Hackwar
Hackwar - comment - 2 Jun 2019

The issue has been found and the original PR can be used. Closing this one.

avatar Hackwar Hackwar - change - 2 Jun 2019
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2019-06-02 18:47:53
Closed_By Hackwar
avatar Hackwar Hackwar - close - 2 Jun 2019

Add a Comment

Login with GitHub to post a comment