xfra35 / f3-multilang

Create multilingual apps with this localization plugin for the PHP Fat-Free Framework
GNU General Public License v3.0
48 stars 13 forks source link

Migrate issue with latest F3 changes #21

Closed ptdev closed 4 years ago

ptdev commented 4 years ago

Hey there xfra35,

I've been using this library with the migrate option enabled and recently the redirects began being made to:

/lang/somepath/@someparam

When it previously would redirect to:

/lang/somepath/theactualparam

That is, it redirects to a route without replacing the placeholder with the actual parameter. Please see the screenshot from devtools where you can see the "Location" header redirecting to a route without substituting the route parameter with the actual variable.

f3multilang

I'm guessing this is happening since this change. At least if I use a base.php file before that I get the correct behavior.

Cheers

xfra35 commented 4 years ago

Thanks for reporting. I've asked @ikkez what was the rationale behind this change, which will break a lot of code (not only this library). Let's wait for his answer.

ptdev commented 4 years ago

Hey, the latest change by @ikkez appears to have fixed it the issue. Thank you both. 🥇 Closing.