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

Routes issue in route contains ? and & #446

Open
Er-Kalpesh opened this issue Aug 20, 2020 · 0 comments
Open

Routes issue in route contains ? and & #446

Er-Kalpesh opened this issue Aug 20, 2020 · 0 comments

Comments

@Er-Kalpesh
Copy link

Er-Kalpesh commented Aug 20, 2020

$r = explode('&', $route);

So here is the example:

  • I created route like: order/index?status=open&day=today

  • but after parseRoute its returning array like:

url[0] = 'order/index?status=open'
url['day'] = 'today'
  • So when I will pass it to my create url like:
    Yii::$app->urlManager->createUrl($menu['url']);

  • it will create URL like : order/index ? status=open ? day=today

  • whats expected is: order/index ? status=open & day=today

So current workaround is addind route like: order/index & status=open & day=today

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

1 participant