Adjusted the algorithm that generates collection URLs. Collections can now have rootUrls and relative URLs, depending on whether they have a parent or not.