Welcome Guest, Not a member yet? Register   Sign In
How to setup a single route with optional argument
#15

(This post was last modified: 12-19-2023, 12:51 PM by Kaosweaver.)

(12-15-2023, 05:22 AM)bgeneto Wrote:
(12-14-2023, 04:47 PM)kenjis Wrote: I have re-read the user guide and this description and the current behavior still do not match.
It is natural that the string that matches (.+) would be the one param $1.

Thank God :-) That's the whole point of this thread. For me the docs description does not match the behavior of (.+) and (:any). 
(:any) will NOT match all characters from that point to the end of the URI. It will match all characters till the first forward slash(/).

(12-14-2023, 04:47 PM)kenjis Wrote: It seems to me that the current behavior should be changed.
Totally!
Thanks! I'm in the midst of routing manually the entire site for an upgrade and I thought I was really messing up. Now I know it isn't me.
Reply


Messages In This Thread
RE: How to setup a single route with optional argument - by Kaosweaver - 12-19-2023, 12:51 PM



Theme © iAndrew 2016 - Forum software by © MyBB