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

(This post was last modified: 11-23-2021, 12:50 PM by mavelo.)

The site uses set404Override to route unmatched URI's to a controller/method thereby facilitating domain.com/username lookups.
  • If the username is not found, we display the 404 view
  • otherwise we show the matching user's profile.
If we route "/(:any)" to the same controller method, the debug toolbar is displayed, but it breaks automatic routing.

set404Override is a better solution for our needs, if not for the inability to show the debug toolbar in the "development" environment.

note: we attempted redirecting when a matching profile was found, but that doesn't seem to function normally when attempted within the override's method.
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