-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[4.0] Generate routed Modal links for iframes when not on the root #30007
Conversation
With last nights Nightly build the Versions modal is styled with and without the patch. As I have multi-lingual sample data installed here are my links: My before My after This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/30007. |
This comment was marked as abuse.
This comment was marked as abuse.
I have tested this item ✅ successfully on 856b214 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/30007. |
This comment was marked as abuse.
This comment was marked as abuse.
Co-authored-by: Quy <quy@fluxbb.org>
Previous test is still valid because last change was only in a code comment. |
I have tested this item ✅ successfully on 0cf8eba This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/30007. |
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/30007. |
Thanks! |
…outs * '4.0-dev' of github.com:joomla/joomla-cms: (612 commits) [4.0] Smart Search: Fixing ordering, order direction and disabled button (joomla#29474) [4.0] Generate routed Modal links for iframes when not on the root (joomla#30007) [4.0] Get menu directly in com_tags menu route helper (joomla#30039) Remove collapse when resizing from mobile to desktop (joomla#30132) [4.0] Wrap component output in `main` element to make Cassiopeia more accessible (joomla#29870) [4.0] Webauthn gmp warning (joomla#29731) [4.0] Refactor to return early, remove if depths and throw NotAllowed (joomla#29694) [4.0] CLI help text (joomla#29811) Feature/draggable typo fixes (joomla#29987) [4.0] Removing unnecessary workaround in finder indexer (joomla#30037) [4.0] Optimizing Smart Search for larger content (joomla#30008) [4.0] Fix js ajax for pre update checker (joomla#29980) [4.0] Cassiopea: Fixing modals custom-select fields display (joomla#30097) [4.0][com_fields] Fix draggable sorting (joomla#30094) [4.0] Correct incorrect @return documentation (joomla#30092) [4.0] Menu items modal: adding missing filters (joomla#30087) short to long php open tags with echo (joomla#30089) Use new Toolbar (joomla#30085) [4.0] Center status/date created headers (joomla#29249) [4.0] Fix Cassiopea searchtools alignment in modals (joomla#30077) ... # Conflicts: # administrator/components/com_templates/src/View/Template/HtmlView.php # installation/sql/postgresql/base.sql # libraries/src/Application/AdministratorApplication.php # libraries/src/Application/SiteApplication.php
…oomla#30007) Correctly route modal links Co-authored-by: Quy <quy@fluxbb.org> Co-authored-by: Quy <quy@fluxbb.org>
Closes #29998
Summary of Changes
The problem this resolves is the generating of links for iframes that start with a relative path eg
src="index.php.....
when the url you are on might be /index.php/this/that/This then generates a url of
/index.php/this/that/index.php.....
when launched.Admin modals are unaffected as they are always in the directory /administrator/ and therefore relatively a url starting href="index.php" would load from /administrator/
#29998 has some examples I struggled with today.
This PR fixes two frontend modals - the Versions button when editing content and the SELECT button when selecting a new site logo in Template settings.
Testing Instructions
Install Joomal 4.0-dev @ 1f24603
Login to super admin
Click Install next to Blog Sample Data
Click ok in JS popup
Go to front end and
Login as super admin
click Welcome to your blog
Click cog -> click edit (to edit the article)
INSPECT the DIV before the Versions button
another good example this fixes is #29296
Actual result BEFORE applying this Pull Request
Note the url in the html
Expected result AFTER applying this Pull Request
Note the url in the html
Documentation Changes Required
none