bugfix for #3881. pushed last url into session and then later included it