Welcome Guest, Not a member yet? Register   Sign In
set404Override and debug toolbar
#5

(This post was last modified: 12-02-2021, 09:12 AM by mavelo.)

We ended up using
Code:
header("Location: "/profile/{$username}", true 302); exit;
upon username match.

Would be nice if we could use
Code:
return redirect()->to("/profile/{$username}")
as in other areas, but that is not available in the 404 override controller/method.

Note: Added to config/routes.php to support the above code
Code:
$routes->get('profile/(:segment)', 'Profile::view/$1');
Reply


Messages In This Thread
set404Override and debug toolbar - by mavelo - 11-16-2021, 12:10 PM
RE: set404Override and debug toolbar - by mavelo - 11-22-2021, 12:06 PM
RE: set404Override and debug toolbar - by kenjis - 11-22-2021, 09:21 PM
RE: set404Override and debug toolbar - by mavelo - 11-23-2021, 12:48 PM
RE: set404Override and debug toolbar - by mavelo - 12-02-2021, 09:10 AM



Theme © iAndrew 2016 - Forum software by © MyBB