You can get a cake friendly URL with the $html->url function, eg
window.location = '<?php echo $html->url('/users/profile/')?>';
On May 4, 8:32 am, Romano <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> A newby question: how do I code a window.location redirect in
> javascript? I cannot seem to find the correct path to any of my views
> in the way that the $html->link helper does.
>
> Best regards,
> Romano
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---