1

May be I'm missing something, but the way now routedebbuger works (2+ version) is that it renders it's results on end of the page, which may be useful sometimes, but more often is annoying.

Would it be possible to return routedebbuger results only in case, when page is not found, when probability that our routing does not work as it supposed to work is the highest? In such case I would get information what is wrong right away, when I need it most (sure, this behavour would be enabled only in debug mode) .

If so, how to do that?

Giedrius
  • 8,430
  • 6
  • 50
  • 91

1 Answers1

1

If you have a custom error controller and 404 view, you can use the version of Phil Haack's route debugger code that I put together to serve as a control on each page, which will be served even if you hit a 404.

Community
  • 1
  • 1
George Stocker
  • 57,289
  • 29
  • 176
  • 237