Update lastUrl setting