What need to do after form submit?

I’d like to reload page ajax call after a form submission, what’s the best option do to that?

router.refreshPage() Refresh/reload current page. Actually same as:

router.navigate(router.currentRoute.url, {
  reloadCurrent: true,
  ignoreCache: true,

here you have the doc:


1 Like

Bu if my form is inside a popup, and this popup has route also
Example: /users/123/edit
inside it i have a popup with the form, what’s the best solution to close popup and reload page (/users/123)

popup:closed -> popup.destroy() -> router.refreshPage()