Is there a worth that may be returned from a controller perform which means, “Keep on the present web page and do not refresh”? Type of like, “Pay no consideration to that click on.”
For instance, a type has “/obtain” as its motion. This path is outlined in routing.yml to name a obtain() perform which determines whether or not the consumer has permission to obtain. If not, when the consumer clicks Submit, I need them to remain on the identical web page with nothing modified.
I do know I can simply redirect to the identical web page. I do know I can intercept the press and use ajax to determine if they’ve permission after which ignore the press that approach. I am not in search of recommendations on different options like these. I merely wish to know if there’s a controller return worth which means, “do nothing”.
I’ve prepared many articles and I’ve tried guessing what would possibly work (no return, null return, empty array, empty markup, and many others.) however I have not discovered a solution to this query.