Hi Martin,
I've made further investigations and found the problem, it was an order of
'mounting pages' and 'setRootRequestMapper'.
If mounting goes first everything works fine (the URL to Loging generated
with HTTPS), but if I change the order the URL is generated for HTTP and
there is no redirect after transition to the Login page.
The source of the issue is resolving Url for IRequestHandler.
In method RequestCycle#mapUrlFor line 429, the mapHandler is called which
returns Url without protocol set.
The mapHandler goes through all registered mappers, so registration order
matters..
in class CompoundRequestMapper:
@Override
public Url mapHandler(final IRequestHandler handler)
{
for (IRequestMapper mapper : mappers)
{
Url url = mapper.mapHandler(handler);
if (url != null)
{
return url;
}
}
return null;
}
I've solved my issue by changing the order, but I would like to avoid this
in future, what would you recommend?
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/How-to-create-https-link-to-a-page-tp4659050p4659087.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]