fix issue with nested urls