URL building should work in theory

This commit is contained in:
Armin Ronacher 2011-05-29 19:56:16 +02:00
parent 5da1fc2215
commit 4d6cd1a390
2 changed files with 15 additions and 0 deletions

View file

@ -180,6 +180,7 @@ def url_for(endpoint, **values):
elif endpoint.startswith('.'):
endpoint = endpoint[1:]
external = values.pop('_external', False)
ctx.app.inject_url_defaults(endpoint, values)
return ctx.url_adapter.build(endpoint, values, force_external=external)