Fixed a bug where sub-urls were not resolving properly