
Tom P
User

Feb 1, 2012, 11:19 AM
Post #2 of 3
(224 views)
Shortcut
|
|
Re: [pothompson] Redirect after save
[In reply to]
|
Can't Post
|
|
Hi Paul, In order to set the previous url you need to add the variable 'return_url=' with the previous query html encoded as the value. In your HTML separator, where you have the link to create a new record added, try the following:
$current_query = htmlspecialchars($_SERVER['QUERY_STRING']); $link = [current link]&returnUrl=$current_query; The above is just an example, you'll need to tweak it to fit your code. The important bit is grabbing the current page view query ($_SERVER['QUERY_STRING']) and adding it to the end of the link so that it's passed in the URL. Hope this helps, Tom
|