Updated the url() method.

Return different url based on whether the content is static or dynamic.