Redirect to correct hash if no tab specified