application
application copied to clipboard
Link to this in error presenter doesn't work when there is no route with <presenter> param
If I do not have any route with <presenter> parameter and use ->link(this) or just some UI\Form in Error presenter I get an error in log PHP User Warning: Invalid link: No route for Error:default() (in production mode only). This was previously reported in forum.
Is there any way to fix this? The only way seems to have route for Error presenter (but still, link to this doesn't point to current URL).
That is a feature. You cannot rely on an identical error to occur every time you visit the broken URL.
To make it clear – you need to set form action to a "stable URL"