Fix an issue that causes retrieving incorrect URL.

PHP-Intro Assignment 6. Several students have complained about a "mysterious error" that may be caused by this.