This one has been hard to track down. So I know I'm missing something really simple.
Basically, I have a page with a form. This form submits to the current page, performs an action, and then reloads the page. This code is in my base Page.php. Which is extended by multiple other page types.
Some of those pages have url parameters. Like so:
All I want is to be able to redirect to the current page by using:
This works fine when there is no url params, but obviously the params a missing after the redirect on pages that have them.
Does Silverstripe have a method of getting all url params as per PHP's simple $_GET array or QUERY_STRING?
Note: I have seen Director::urlParam('tid') will work above. Basically I want this method to be flexible enough to simply get them all and rebuild the URL as it was for redirect.