Hi,
I’ve got a problem with a RESTful redirect causing Nokia series 40
phones to go in to spasms. When a user logs in to our service (using
restful_authentication), they are redirected to their homepage via a
redirect_to homes_url call. The problem is that, for some reason, in
this context, homes_url generates ‘/homes’ and not ‘http://server/
homes’ . Now Nokia decrees that relative redirects are a sin of the
second highest order and immediately warns the user that they are
‘about to send data to another server’.
Now, I know I can just pass the absolute URL to the redirect_to, but
this breaks the otherwise DRY nature of the code so far as I will need
to manually account for the boxes in the cluster for this one link.
My question, then, is: is there anyway to force homes_url (or any
RESTFUL route) to return an absolute URL? Strangely, it does seem
that the same call generates absolute URLs when used with other
methods, such as link_to.
Thanks,
Todd