Fix bug where it browses to /null if prev_url doesn't exist