Hello,
I need the URL of the current page. Using RequestGlobals and
HTTPServletRequest does not work because of some load balancer magic
with AJP, it returns unsecured HTTP links even when HTTPS is used by the
client.
Tapestry itself seems to generate the URLs on the page just fine, what
does it use to determine the current URL? Would a combination of
BaseUrlSource and the request suffice like this?
baseURLSource.getBaseURL(globals.getRequest().isSecure())
+ globals.getHTTPServletRequest().getRequestURI()
I cannot test it myself because the issue is present on the production
system only.
Regards
Stephan
I need the URL of the current page. Using RequestGlobals and
HTTPServletRequest does not work because of some load balancer magic
with AJP, it returns unsecured HTTP links even when HTTPS is used by the
client.
Tapestry itself seems to generate the URLs on the page just fine, what
does it use to determine the current URL? Would a combination of
BaseUrlSource and the request suffice like this?
baseURLSource.getBaseURL(globals.getRequest().isSecure())
+ globals.getHTTPServletRequest().getRequestURI()
I cannot test it myself because the issue is present on the production
system only.
Regards
Stephan