Welcome Guest, Not a member yet? Register   Sign In
This is a bug or feature ?
#1
Exclamation 

Hello everyone who reads this topic  Wink 

Helping one man solve his problem with the redirects, I was faced with the problem...
let's say I have this small system routing:

PHP Code:
$routes->group('{locale}', function($routes) {
 
   // Test #1 page
 
   $routes->add('FirstTest''TestController::test_1');
 
   // Test #2 page
 
   $routes->add('SecondTest''TestController::test_2', ['as' => 'Test_2']);
}); 


and in the method "test_1" spelled out the function "return redirect()->route('Test_2')",

then when you go to this route, it redirects to "TestController::test_2" and in the place of the name of the locale in the url is this entry: "%7Blocale%7D" and segmet "/SecondTest"

Q: is This recording supposed to be like this "%7Blocale%7D", or should it be the localization we were originally in ?
I would change this world, but God doesn't give me the source.
Reply


Messages In This Thread
This is a bug or feature ? - by Digital_Wolf - 07-26-2019, 02:11 AM
RE: This is a bug or feature ? - by MGatner - 07-28-2019, 07:52 AM
RE: This is a bug or feature ? - by Digital_Wolf - 07-28-2019, 09:55 AM
RE: This is a bug or feature ? - by InsiteFX - 07-28-2019, 10:53 AM
RE: This is a bug or feature ? - by Digital_Wolf - 07-28-2019, 11:30 AM
RE: This is a bug or feature ? - by Digital_Wolf - 07-28-2019, 12:03 PM



Theme © iAndrew 2016 - Forum software by © MyBB