Closed benkard closed 4 years ago
If you need an example to test it with, it looks like this bug currently affects admin-showcase
:
$ curl -D - https://adminfaces-adminfaces.apps.us-east-2.starter.openshift-online.com/
HTTP/1.1 302 Found
Location: https:/index.xhtml
Nice catch, thank you @benkard!
This fixes the case where a redirect to, say, /index.xhtml comes out as http:/index.xhtml instead of the correct URI. This usually happens when the application prefix is empty and its path is /, which matches the first slash after the URI scheme. This patch handles that case by skipping over the URI scheme when looking for the start of the prefix in the request URI.
If the scheme cannot be detected in the request URI, the behavior is unchanged.
Fixes #160.