-
Note that if "Platform" is not a valid route, you will get "No route found" error (and no redirection). That's why I suggested that you should:
You can check valid routes and URLs by
php bin/console router:debug, see Console Commands.Make sure the displayed valid routes and their URLs contains where you want to direct (e.g. "Platform".
-
A modal dialog is closed by returning JSON properly. In normal operation by generated code, the server side will return properly JSON response (no error, or has error in JSON, or has URL in JSON) and then the dialog will be closed. If you return JSON response yourself by server event, you may want to press F12 in your browser, check for JavaScript error in Console pnale and check HTTP response in Network panel, and see what your response actually returns, try to find why it does not close the dialog. If you returns text/html or invalid JSON, it won't work.