Discussions

Ask a Question
Back to all

URLs being flagged as duplicate when creating content item, even though URLs are different

It seems that the API route for creating content items only validates that the domain and its extension are different, ignoring the path and or query parameters.

For example, these two URLs would return the DUPLICATE_URL error code, even though the path is different:

http://localhost:8000/api/saml/sso/c07cae5e-2066-4ff2-8af3-c419da30f74b

http://localhost:8000/api/saml/sso/9cedfc33-041c-4c52-b11f-f3a90a2bc489

I know that not allowing for duplicate URLs is intentional, [as described on this page](https://degreed.zendesk.com/hc/en-us/articles/8787708962332-Degreed-Button-Frequently-Asked-Questions), but is it really intended for the validation to ignore the URL's path and query params?

If that is the case, I would like to know why that is, and would like to note that it would be a good idea to clarify what constitutes as a duplicate URL in the docs.