kraih/mojo — pull request #393 by Hercynium (2012-10-11 15:37:02+00:00)
Title: Simple little doc patch

I spent *way* too long trying to figure out the "proper" way to get the URL for the current request. I pored over the docs and tutorials because I wanted to make sure I was doing it "right". Just to get the page done I used `$c->req->url`, until this morning when I tried `$c->url_for('')`... That worked so I tried `$c->url_for;` which also worked!

I needed the requested URL because I was writing an 'under' route for checking authentication and I wanted to record the user's requested destination before forwarding them to the login page so I could then forward them where they wanted to go after logging in.