<p dir="auto">Flask's automatic redirects to add a trailing slash don't appear to work for the root view.  This isn't noticeable when the application is mounted at the root of a domain, but mine is mounted in a subdirectory using mod-wsgi:</p>
<p dir="auto">WSGIScriptAlias /myapp /path/to/myapp/modwsgi/stub.py</p>
<p dir="auto">The result is that when someone visits <a href="http://mysite/myapp" rel="nofollow">http://mysite/myapp</a>, none of the application's relative urls work.  (This is expected if the trailing slash is missing, because a relative url like static/image.png means something different depending on whether the current page is <a href="http://foo/bar" rel="nofollow">http://foo/bar</a> or <a href="http://foo/bar/" rel="nofollow">http://foo/bar/</a>)</p>
<p dir="auto">Given the following HTTP request from client</p>
<p dir="auto">GET /somescript HTTP/1.1<br>
Host: <a href="http://www.example.com" rel="nofollow">www.example.com</a></p>
<p dir="auto">SCRIPT_NAME='/somescript'<br>
PATH_INFO=''</p>
<p dir="auto">MapAdapter.match should raise a RequestRedirect to <a href="http://www.example.com/somescript/" rel="nofollow">http://www.example.com/somescript/</a> other than take it as if client issued a GET request to <a href="http://www.example.com/somescript/" rel="nofollow">http://www.example.com/somescript/</a></p>