User tests: Successful: Unsuccessful:
Pull Request for Issue #43298 .
Use "notice" instead of "warning" for informative messages.
Please follow #43298
Yellow message
Blue message
Please select:
Reference:
Status | New | ⇒ | Pending |
Category | ⇒ | Administration com_redirect |
it should be info not warning
It is "notice", as it was before in 5.0 and in j4.
tbh, this messages is useless, why do we have them in first place?
Only a warning about disabled plugin is good enough.
Please READ the report more carefully. The messages are NOT useless.
I realise that there is a lot of variants but currently AND with this PR the following message is completely wrong!!!
When the plugin is enabled any redirects that have been created in the component will take effect.
When the plugin is enabled there is an additional option to collect urls. Collecting urls is independent of redirecting urls.
It says
The Redirect System Plugin is disabled. It needs to be enabled for this component to work.
It should say
The Redirect Plugin is enabled. The 'Collect URLs' option in the Redirect System Plugin is disabled. Error page URLs will not be collected by this component.
I am wondering now if you did not realise the complete use of the plugin and component when you rewrote this part of the code as it makes no sense.
The current code as changed in #42447 is simply wrong.
You never check if the plugin is enabled or disabled. You only check if the plugin exists
It is (almsot) 1:1 copy of what was before:
Old:
New:
Maybe something wrong with redirectPluginId or with that if() condition, who knows.
Its not the same - this is where the mistake is
ORIG
NEW
redirectPluginId gets the ID of the plugin
pluginEnabled gets the state of the plugin
redirectPluginId gets the ID of the plugin
It is there only when the plugin is disabled
joomla-cms/administrator/components/com_redirect/src/View/Links/HtmlView.php
Lines 139 to 141 in a1cdbc1
I give up - I am clearly unable to explain what should be very obvious. Your changed code in #42447 produces the wrong message and this PR makes no changes to correct that.
Instead of saying
The Redirect Plugin is enabled. The 'Collect URLs' option in the Redirect System Plugin is disabled. Error page URLs will not be collected by this component.
Your code says
The Redirect System Plugin is disabled. It needs to be enabled for this component to work.
I give up
Don't give up
I dont know how else to explain the obvious
Labels |
Added:
bug
PR-5.1-dev
|
Should work now.
See, it was easy ;)
But messages are good? :)
Changed that also, check again.
I have tested this item ✅ successfully on 3e9f660
I have tested this item ✅ successfully on 3e9f660
Status | Pending | ⇒ | Ready to Commit |
RTC
Labels |
Added:
RTC
|
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2024-05-11 09:12:17 |
Closed_By | ⇒ | bembelimen |
Thanks!
This does not solve #43298