FixSlashes

Qualified name: intranet.middleware.url\_slashes.FixSlashes

class intranet.middleware.url_slashes.FixSlashes(get_response)[source]

Bases: object

Methods

__call__(request)[source]

Add or remove trailing slashes where needed.

Note that there is no HTTP redirection actually happening. This just fixes the trailing slashes before the URLs are matched to any URL patterns by changing the request’s internal properties.

__init__(get_response)[source]