This is my standalone-full.xml configuration with ssl configured security realm .
I tried
As you can see without %U
%U
It redirects all HTTP traffic to HTTPS