The CT.Gov site has been updated to use a new URL structure, which breaks our redirection of trials not found in the Clinical Trials API.
Link such as https://clinicaltrials.gov/show/NCT04916002 no longer work. The structure is now https://clinicaltrials.gov/study/NCT04916002
ESTIMATE TBD
What's the expected change?
Trials which are not found in the Clinical Trials API should redirect to https://clinicaltrials.gov/study/NCT<ID>.
Additionally, the URL base for redirection should be moved to the web.config.
What's the current functionality?
Trials which are not found in the Clinical Trials API should redirect to https://clinicaltrials.gov/show/NCT<ID>
What's the updated acceptance criteria?
Scenario Trial in clinical trials API.
Given path 'clinicaltrials', 'NCT04916002'
When method get
Then status 302
And match header Location == '/research/participate/clinical-trials-search/v?id=NCT04916002&r=1'
Scenario Trial NOT found in clinical trials API.
Given path 'clinicaltrials', 'NCT05911152'
When method get
Then status 302
And match header Location == 'https://clinicaltrials.gov/study/NCT05911152'
The redirect should go directly to the target URL without any intermediary redirects.
Because the lower tier environments are behind the NIH firewall, this cannot be tested through a front end web site.
To test in the browser, use the F12 tools and the network tab to check the actual traffic.
Alternatively, use curl with the --verbose option.
Issue description
The CT.Gov site has been updated to use a new URL structure, which breaks our redirection of trials not found in the Clinical Trials API.
Link such as
https://clinicaltrials.gov/show/NCT04916002
no longer work. The structure is nowhttps://clinicaltrials.gov/study/NCT04916002
What's the expected change?
https://clinicaltrials.gov/study/NCT<ID>
.What's the current functionality?
https://clinicaltrials.gov/show/NCT<ID>
What's the updated acceptance criteria?
The redirect should go directly to the target URL without any intermediary redirects.
Because the lower tier environments are behind the NIH firewall, this cannot be tested through a front end web site.
To test in the browser, use the F12 tools and the network tab to check the actual traffic.
Alternatively, use curl with the
--verbose
option.Additional details / screenshot
Related Tickets