Welcome Guest, Not a member yet? Register   Sign In
redirect() question
#1

[eluser]ellipsis[/eluser]
I have a function in a controller that is used by two separate views because the link sends to that function.. that's beside the point. The point is that at the end of that function i have a redirect('page' 'Location); which is just fine when the user performs the action on that specific page, but when he performs it from the other page that uses this function it obviously sends him to 'page'. Is it possible to tell redirect to go to whatever page it was on? or just specify with some if statements where to go? I tried using ajax to do this, but had absolutely no luck with the link_to_remote function because I can't understand how to concatenate strings to the location and I've seen topics open on the same issue that nobody has replied to.


Messages In This Thread
redirect() question - by El Forum - 06-30-2009, 06:12 PM
redirect() question - by El Forum - 06-30-2009, 06:57 PM
redirect() question - by El Forum - 06-30-2009, 07:23 PM
redirect() question - by El Forum - 06-30-2009, 07:27 PM



Theme © iAndrew 2016 - Forum software by © MyBB