This is probably a really dumb question, but it’s virtually impossible to google the answer…
Is it possible (and if so how…) to do something like:
redirect_to :root, :registered => true
Which would then link to http://myurl.com/?registered=true
The root url seems to strip all params. All I need it for is to track sign-ups via Google Analytics (I know I should probably be sending people to a thank-you page instead, but in this particular case – it makes more sense this way)
For this reason too – I don’t want to redirect to something like:
:controller => :pages, :action => :home, :registered => true
As this will mess up both the analytics and SEO etc…
Thanks in advance.
You should be able to do: