url encode |
(10-02-2022, 11:18 AM)heriniaina Wrote: Just try $path needs to be url encoded or it won't work. But now I think using the '%' as part of the url is not valid. You get a bad request error (400 status code). https://acme.com/%2Fabc%2F/xyz. is invalid! Need to use https://acme.com?x=/abc/xyz or better yet https://acme.com?x=%2Fabc%2Fxyz
Simpler is always better
/ chars in $path will screw it up. They need to be url encoded. But this apparently causes a bad url request. Need to use ?path=xxxxxx.
Simpler is always better
suggestion (using named route):
Code: $routes->get('/operations/path-item/(:segment)', 'Operations::path_item/$1'); Code: -route- |
Welcome Guest, Not a member yet? Register Sign In |