RTC PR-5.1-dev Pending

User tests: Successful: Unsuccessful:

avatar Hackwar
Hackwar
17 Mar 2024

Pull Request for Issue #43069.

Summary of Changes

When the site runs in the root of the domain and the path is empty, because the URL is entirely query parameters, the slash to make the URL relative to the root folder is removed, resulting in the URL becoming relative to the current URL. This PR makes an exception for this special case.

Testing Instructions

  1. In the System - SEF plugin set to remove trailing slash.
  2. Create an article in the uncategorised category.
  3. Click on the Preview button.

Actual result BEFORE applying this Pull Request

Either no modal is displayed or an error page is shown instead. (When the article is alternatively the homepage, the URL is completely empty, resulting in a JS error.)

Expected result AFTER applying this Pull Request

The preview is properly displayed.

Link to documentations

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

avatar Hackwar Hackwar - open - 17 Mar 2024
avatar Hackwar Hackwar - change - 17 Mar 2024
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 17 Mar 2024
Category Front End Plugins
avatar brianteeman
brianteeman - comment - 17 Mar 2024

These test instructions are not enough to replicate the problem and therefore test the fix

avatar SniperSister SniperSister - test_item - 18 Mar 2024 - Tested successfully
avatar SniperSister
SniperSister - comment - 18 Mar 2024

I have tested this item ✅ successfully on 9948625

I've replicated the issue as described in #43069 and tested the patch in various scenarios:

  • Non-Multilanguage site without sef in domain root
  • Non-Multilanguage site with sef in domain root
  • Multilanguage site in with sef domain root
  • Multilanguage site in without sef domain root
  • Non-Multilanguage site without sef in subdirectory
  • Non-Multilanguage site with sef in subdirectory
  • Multilanguage site in with sef in subdirectory
  • Multilanguage site in without sef in subdirectory

The patch worked in all scenarios.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43074.

avatar viocassel viocassel - test_item - 18 Mar 2024 - Tested successfully
avatar viocassel
viocassel - comment - 18 Mar 2024

I have tested this item ✅ successfully on 9948625


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43074.

avatar Quy Quy - change - 18 Mar 2024
Status Pending Ready to Commit
Labels Added: PR-5.1-dev
avatar Quy
Quy - comment - 18 Mar 2024

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43074.

avatar Quy Quy - change - 18 Mar 2024
Labels Added: RTC
avatar LadySolveig LadySolveig - change - 18 Mar 2024
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2024-03-18 20:18:53
Closed_By LadySolveig
avatar LadySolveig LadySolveig - close - 18 Mar 2024
avatar LadySolveig LadySolveig - merge - 18 Mar 2024
avatar LadySolveig
LadySolveig - comment - 18 Mar 2024

Thank you @Hackwar and also for testing and review @SniperSister @viocassel

Add a Comment

Login with GitHub to post a comment