Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Routing error with array $args but not everytime #3294

Closed
flanderboy opened this issue Oct 24, 2023 · 2 comments
Closed

Routing error with array $args but not everytime #3294

flanderboy opened this issue Oct 24, 2023 · 2 comments

Comments

@flanderboy
Copy link

flanderboy commented Oct 24, 2023

Hello everyone,
hai have this route

$app->get('/topics/{id}', function ($request, $response, array $args) { print_r($args['id']); exit; })->setName('app-topics');

if I call with this URL or other one, it's ok

https://www.mydomain.com/topics/STDkQPPO1u0bOCQOX0c2fnvTd1pxUWZNa2QlhOcWmtzXRRJsUZJUv0WO2vKdeehanJz8WJ68cLk8jJ

but if I use this specific URL

https://www.mydomain.com/topics/STDUtN30XOLTilztjcJDaAHa5zQH9Y5i8IyULvsv1UbrpRblPKjaTFGhiNHlL0Yn8rfIkBNRaxImvX

SLIM redirect me to home route /

Any idea?

thenks
Stefano

PHP 8.2
SLIM 4

@odan
Copy link

odan commented Oct 24, 2023

Your example works on my dev machine. It could be something with the server setup or your browser cache.

Please note, we have nice Slim Forum.

@flanderboy
Copy link
Author

Thenks @odan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants