Fixed bug when URL paths are appended