This approach is better. This approach ensures that the page is actually loaded. Your approach only checks whether the given URL is in the form that we *think* is right. Sorry, I did not notice that when I was reviewing bf478da