I did some further testing and what was happening was that I was redirecting to a page that had a route assigned to it.
Here's the situation: User goes to http://apps.face.../messages/post/ //messages_controller.php function post() { // ... Some Stuff // Redirect back to McGriff messages $this->redirect("/"); } // routes.php Router::connect('/', array('controller' => 'messages', 'action' => 'index')); User gets routed to .../messages/index/ Browser URL still says: http://apps.face.../messages/post/ I'm not sure if this is the 'correct' behavior, or if it is poor form to redirect to a route, but this is what happens. I'm using 1.2 beta by the way. Also, I heard rumor of someone setting up a documentation wiki, and I'm strongly in favor. I've spent many many hours the past few days searching the existing documentation, and I think we need more extensible media. On Jan 23, 5:49 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > huh, that's really odd, it looks good to me. Maybe it's a facebook > thing. Have you tried it on a different server? Also, what happens if > you use $this->redirect("/messages/")? I think the url routing is all > handled in /webroot/index.php so maybe it doesn't like redirecting to > a shallower path? > > Dave > > On Jan 23, 4:52 pm, Daniel Moore <[EMAIL PROTECTED]> wrote: > > > Hey, > > I'm moderately new with CakePHP, but I have this issue where my > > redirect leaves the old URL in the browser. > > > [code] > > //messages_controller.php > > function post() { > > // ... Some Stuff > > > // Redirect back to McGriff messages > > $this->redirect("/");} > > > [/code] > > > Yet the browser still shows:http://apps.facebook.com/mcgriff/messages/post/ > > instead of:http://apps.facebook.com/mcgriff/ > > > Any suggestions? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---