Skip to content

Commit

Permalink
another url_for example
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jun 14, 2015
1 parent 4f9bcd2 commit e34c9b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Changes
@@ -1,5 +1,5 @@

6.12 2015-06-11
6.12 2015-06-14
- Welcome to the Mojolicious core team Dan Book.
- Added TO_JSON method to Mojo::Collection. (wttw)
- Fixed bug in Mojo::Message where multipart content would get downgraded
Expand Down
3 changes: 3 additions & 0 deletions lib/Mojolicious/Controller.pm
Expand Up @@ -896,6 +896,9 @@ Generate a portable L<Mojo::URL> object with base for a path, URL or route.
# "http://127.0.0.1:3000/index.html" if application was started with Morbo
$c->url_for('/index.html')->to_abs;
# "https://127.0.0.1:443/index.html" if application was started with Morbo
$c->url_for('/index.html')->to_abs->scheme('https')->port(443);
# "/index.html?foo=bar" if application is deployed under "/"
$c->url_for('/index.html')->query(foo => 'bar');
Expand Down

0 comments on commit e34c9b8

Please sign in to comment.