On form submit redirect to same page.

Is it possible to redirect to same page after form submit?

Some might say just use ajax but it is possible to do without being hacky.


return $this->refresh();

But on submit I am always taken to the action URL that is specified.

Should I use ajax, I am using a widget so it will be used in multiple locations which is why the action has been specified.

You said "same page". If the form action url is different than returning url should be you have to use $this->redirect().