Skip to content

Commit

Permalink
Use route_path instead of route_url
Browse files Browse the repository at this point in the history
I'm hoping (but haven't yet confirmed) that this will let the thing work
when I use nginx as a reverse proxy -- until now, when I do that, the
short URLs look like http://localhost:8080/xyzzy, even though the
public-facing website is http://eensy.teensy.info.
  • Loading branch information
offby1 committed May 9, 2015
1 parent b95ffef commit 914d6ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tinyurl/templates/homepage.mak
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<div class="row" style="margin-bottom: 5rem;">
<div class="col-md-12">
<div class="text-center">
<form action="${request.route_url('shorten')}" method="get" style="margin-bottom: 2rem;">
<form action="${request.route_path('shorten')}" method="get" style="margin-bottom: 2rem;">
<input type="text" id="input_url" name="input_url" placeholder="Type a URL here, yo"/>
<input type="submit" value="Tiny-ify it"/>
</form>
Expand Down

0 comments on commit 914d6ee

Please sign in to comment.