﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
24459	Add option to `build_absolute_uri` to build specific http or https URI	Rik	nobody	"The `build_absolute_uri` method on the request object (https://docs.djangoproject.com/en/1.7/ref/request-response/) builds an absolute URI to the given location. It takes the protocol you're currently on, so if you are on `http://example.com` and you execute `build_absolute_uri('test/')` you'll get `http://example.com/test/`, and if you're on `https://example.com`, you'll get `https://example.com/test/`.

Sometimes when I create an absolute uri, I want to be sure that it's going to https, whether I currently am on http or https. So I would like it if I could tell this to the `build_absolute_uri` method.

I propose to add a keyword agrument `https` to the method. When you set it to `True` it will use https, when you set it to `False` it will use http, and when you don't set it it will default to `null`, which will keep the old behavior (use the protocol that's in use in the current request).

So then you would be able to create a secure absolute URI like this:

{{{
build_absolute_uri('test/', https=True)
}}}"	New feature	closed	HTTP handling	dev	Normal	wontfix	build_absolute_uri		Someday/Maybe	0	0	0	0	0	0
