folded-php / folded-php/routing

To be able to add parameters when using redirectToRoute

Open
#9 0 comments 0 reactions 0 assignees View on GitHub
enhancement good first issue
Dominant language
PHP
Stars
2
Forks
0
PR merge metrics
No merged PRs in 30d

Description

## Description

Currently it is impossible to redirect to a route with parameters.

## Expected behavior

To be able to add parameters to the redirectToRoute to get the correct url like following:

```php
redirectToUrl("user.show", ["user" => 12]); // string(8) "/user/12"
```

## Actual behavior

No parameters allowed when using this method.

## Alternatives solutions

Using `redirectToUrl()` and manually injecting the parameters in the string.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.