Refs #21228 Fix code to work when called with no request.

We don't have access to the protocol+domain part of the absolute_url in
that case, hence the live code was failing.
Now we reconstruct that part based on the key stored in redis hash var