application icon indicating copy to clipboard operation
application copied to clipboard

Link to this in error presenter doesn't work when there is no route with <presenter> param

Open janedbal opened this issue 10 years ago • 2 comments

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).

janedbal avatar Oct 07 '15 10:10 janedbal

That is a feature. You cannot rely on an identical error to occur every time you visit the broken URL.

JanTvrdik avatar Oct 07 '15 10:10 JanTvrdik

To make it clear – you need to set form action to a "stable URL"

JanTvrdik avatar Oct 07 '15 11:10 JanTvrdik