update:
If we add the exact URL with controller's IP address, the redirect works and everything is successful, however we then get redirected to this page:
We do become authenticated and can browse away to get to the internet, but we should see a login success page.
Also the variable {$h} seems to be causing a problem with reaching this page and becoming authenticated. That variable is located in the NAS Login section for destination url.
Any ideas?