Redirect to /
acegilz opened this issue · comments
How can I redirect to homepage from the original of /?ref=xxxx
this worked
if request.env['affiliate.tag'] != nil
redirect_to '/' unless request.fullpath == '/'
end
Closing this out as you've provided the solution.