mbork.pl
How to label each page with a title?
Here's an example. If a user tries to access a route they don't have permission to access, the component (which normally sets the title in the context) is not rendered at all (and rightly so). But that means that the user sees a "placeholder component" (which is basically a box saying "You are not permitted to see this") together with a wrong title (because the piece of code which actually sets the header is never reached).
12 replies