diff options
| author | Chris McDonough <chrism@plope.com> | 2015-03-15 16:05:08 -0400 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2015-03-15 16:05:08 -0400 |
| commit | 3f7e1707d4aa759cca33f0391508f7bf92227e60 (patch) | |
| tree | 17908551f091ec2725bf011d017673b0dbc53bbc /docs | |
| parent | 45aa696cf2e90a201eeb5b9d3c90ab0be820d459 (diff) | |
| parent | 24358c9d1d474bb81ce423d270041464bc731ce9 (diff) | |
| download | pyramid-3f7e1707d4aa759cca33f0391508f7bf92227e60.tar.gz pyramid-3f7e1707d4aa759cca33f0391508f7bf92227e60.tar.bz2 pyramid-3f7e1707d4aa759cca33f0391508f7bf92227e60.zip | |
Merge branch 'dstufft-custom-append-slash-redirect'
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/narr/urldispatch.rst | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/narr/urldispatch.rst b/docs/narr/urldispatch.rst index ca6a55164..fa3e734fe 100644 --- a/docs/narr/urldispatch.rst +++ b/docs/narr/urldispatch.rst @@ -842,7 +842,9 @@ route. When configured, along with at least one other route in your application, this view will be invoked if the value of ``PATH_INFO`` does not already end in a slash, and if the value of ``PATH_INFO`` *plus* a slash matches any route's pattern. In this case it does an HTTP redirect to the -slash-appended ``PATH_INFO``. +slash-appended ``PATH_INFO``. In addition you may pass anything that implements +:class:`pyramid.interfaces.IResponse` which will then be used in place of the +default class (:class:`pyramid.httpexceptions.HTTPFound`). Let's use an example. If the following routes are configured in your application: |
