You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The URL Routing Placeholder does not capture the right values when defined
for example: $routes->get("/(:hash)", "Home::index/$1");
where the url is http://localhost/www/bitmoservice/public/#padoafa
Will not grape the hash fragment of the url and also the
will not capture the: path/to/resource and return it as provided in the url.
`
** Expected Results **
I was expecting to see the hash fragment passed to my controller and then i can retrieve it as argument.
secondly i was expecting the (:any) placeholder to return the whole fragment of the the url including the slashes as provided so i can determined what the user was trying to access. In the previous version of the app release this methods where working properly and in CI version 3 too. Hope this will be identified and resolved soon.
CI Version 4.1.1
Affected module(s)
app\Config\Routes.php
Context
OS: [e.g. Windows 10 pro]
Web server [e.g. Apache 2.4.46]
PHP version [e.g. 7.4.59]
The text was updated successfully, but these errors were encountered:
obipascal
added
the
bug
Verified issues on the current code behavior or pull requests that will fix them
label
Mar 12, 2021
(:hash) doesn't refer to the hashtag. I'm honestly not sure what that is supposed to do because it has the same placeholder regex as segment with no special handling:
(:any) should indeed match "the rest of the URI" but my guess is that in your case it is failing because of the preceding slash with no other segment, but I'd have to look through the code to be sure. What do you get passed in as a parameter when it does match?
The URL Routing Placeholder does not capture the right values when defined
for example:
$routes->get("/(:hash)", "Home::index/$1");
where the url is
http://localhost/www/bitmoservice/public/#padoafa
Will not grape the hash fragment of the url and also the
$routes->get("/(:any)", "Home::index/$1");
where the url is
http://localhost/www/bitmoservice/public/path/to/resource
will not capture the: path/to/resource and return it as provided in the url.
`
** Expected Results **
CI Version 4.1.1
Affected module(s)
app\Config\Routes.php
Context
The text was updated successfully, but these errors were encountered: