Use generated URLs rather than constant URLs.

Fixed URLs do not work well when the app is mounted under a subdirectory.