So this is a logic thing.
in com_redirects we allow the entry of an old (called Expired) Url and a New URL, in advanced mode (enabled in options) we allow a Redirect Status Code also.
Now, if you enable advanced mode, you still have the Expired URL field and the New URL field but you can select ANY valid HTTP Response code from he dropdown from 100 to 511
However, its only 300-399 that will result in the New Url being the final destination and redirected to. Its only ever REDIRECTING if its 300-399 - otherwise the redirect plugin is a RESPONSE plugin.....
So for example:
Expired URL = AAA
New URL = BBB
Redirect Status Code: HTTP/1.1 302 Found
// Response is a redirect, a Location header is in the response leading to BBB
Expired URL = AAA
New URL = BBB
Redirect Status Code: HTTP/1.1 401 Unauthorized
// Response is NOT A REDIRECT, a Location header IS NOT in the response (correctly) and a 401 header is correctly returned.
In this second example the New URL BBB is never used, and the Redirect plugin is not actually REDIRECTING to a new URL, its acting as a Request handler and outputting custom responses.
There is nothing to guide the user (REMEMBER THINK LIKE A JOOMLA USER NOT A DEVELOPER!!) that the NEW URL is never going to be used if the Redirect Status Code is not 300-399
or
1.1) Limit to the "Redirect Status Code" to only 300-399 valid response codes?
or
and/or
and
generic screenshot to show the screen Im talking about:
Labels |
Added:
?
|
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2021-04-09 13:52:01 |
Closed_By | ⇒ | PhilETaylor |
Hi @PhilETaylor. I have added a line in the help text to clearly view your point. Does this work ??