User tests: Successful: Unsuccessful:
My first PR so sorry if I messed something up. Please give me feedback then. Some considerations is that this only fixes images in images/ folder and does not fix other relative URL:s or such. Perhaps a broader fix is necessary?
Pull Request for Issue #44635.
Check to see if values in content history includes images with relative /images url
Open preview of content history with images in content with relative urls like images/test.png
Images broken because urls are relative to /administrator/ so for example DOMAIN/administrator/images/test.png
Images shown and url of images is DOMAIN/images/test.png
No documentation changes for docs.joomla.org needed
No documentation changes for manual.joomla.org needed
Status | New | ⇒ | Pending |
Category | ⇒ | Administration com_content com_contenthistory |
Done! So if I understand correctly then first create issue, then create pull request referring to issue and close issue? Is there any "documentation" for this regarding Joomla that I could read up on?
If you create a PR no Issue is needed.
I don't know about Documentation for this workflow.
Labels |
Added:
PR-5.3-dev
|
NP! Thanks for helping me learn
I have tested this item ✅ successfully on ecd0668
Thank you very much @Attila-SWE and congratulations to your first PR!
Status | Pending | ⇒ | Ready to Commit |
RTC
Status | Ready to Commit | ⇒ | Pending |
Back to Pending status.
I am sorry, the changes will not going to work reliable. But thanks for your try.
You is assuming that all images are from images/
folder, however it not always true.
A solid fix going to be much more complex. It need something similar to what we have in SEF plugin
joomla-cms/plugins/system/sef/src/Extension/Sef.php
Lines 229 to 259 in 9800738
Labels |
Added:
Updates Requested
bug
|
New suggested solution.
Thanks. That looks much better. Still few things:
src=
before running reg expression (as it done in SEF plugin). Can use str_contains()https
, but we should check any protocol (as it done in SEF plugin)Should we also fix all relative 'href' or just 'src'?
If you like you can do for href
also, sure.
@Attila-SWE Thanks for your first PR. Please close the issue.
I will test the PR but wan't to wait first if there is Feedback.