Skip to content

Resolve "Pages Domain API returns 404 when using a specific domain"

What does this MR do?

Fixes issue where retrieving a single pages domain does not work when accessing endpoint by path and project name includes a period.

$ curl --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v4/projects/namespace%2Fmy.project/pages/domains/www.domain.example

Are there points in the code the reviewer needs to double check?

Why was this MR needed?

Common case might be a project that is named with a domain name. See issue #40668 (closed)

Screenshots (if relevant)

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Closes #40668 (closed)

Merge request reports