mozilla/bedrock — Issue #14: Helper to point to old PHP URLs in lieu of URL reversal
Author: fwenzel
Created: 2012-02-25 00:07:38+00:00
State: open

To point to a Django URL, you use URL reversal:

{{ url('myapp.page') }}

That won't work for URLs that are still on PHP, like the front page.

I suggest we make a helper that we can give a relative URL to, but that will auto-add the locale, so:

{{ mozorg_url('/') }}

would resolve to ``/en-US/``.

Plus if we use that helper or old-style URLs, they are easier to find once we consider switching off PHP.