Shield::Middleware expects the supplied url to be absolute. This makes life difficult when the app is on a sub uri as the url is passed in class context, and there doesn't seem to be any mechanism for determining the sub uri the app is mounted on at that point. Is there an alternative to simply passing in e.g. '/suburi/login', or could Shield::Middleware#headers prefix env["SCRIPT_NAME"] to url to get round this?