Fixed the previous page function.
Fixed the non-logged-in to log the browsing log.