Maintain session for origin
Correcting function that removes the HTTP header
Previous and next links are no longer absolute