diff --git a/deployment/frontend/src/components/datasets/sections/API.tsx b/deployment/frontend/src/components/datasets/sections/API.tsx index 19fa40018..7d5ab9203 100644 --- a/deployment/frontend/src/components/datasets/sections/API.tsx +++ b/deployment/frontend/src/components/datasets/sections/API.tsx @@ -105,7 +105,7 @@ const QueryInstructions = () => { : publicCkanUrl const ckanBaseUrl = `${publicCkanUrl}/api/3/action` - const ckanDatasetGetUrl = `${ckanBaseUrl}/package_show?id=${dataset.id}` + const ckanDatasetGetUrl = `${ckanBaseUrl}/package_show?id=${dataset.name}` const rwBaseUrl = `https://api.resourcewatch.org/v1` const rwDatasetGetUrl = `${rwBaseUrl}/dataset/${dataset.rw_id}` @@ -165,7 +165,7 @@ const UseCases = ({ usecases }: { usecases: string }) => { : publicCkanUrl const ckanBaseUrl = `${publicCkanUrl}/api/3/action` - const ckanDatasetGetUrl = `${ckanBaseUrl}/package_show?id=${dataset.id}` + const ckanDatasetGetUrl = `${ckanBaseUrl}/package_show?id=${dataset.name}` useEffect(() => { if (!highlighted && divRef.current) { @@ -210,7 +210,7 @@ const SnippetInstructions = ({ : publicCkanUrl const ckanBaseUrl = `${publicCkanUrl}/api/3/action` - const ckanPackageShowUrl = `${ckanBaseUrl}/package_show?id=${dataset.id}` + const ckanPackageShowUrl = `${ckanBaseUrl}/package_show?id=${dataset.name}` const ckanPackageShowSnippet = getSnippetFn(ckanPackageShowUrl) const rwBaseUrl = `https://api.resourcewatch.org/v1` diff --git a/e2e-tests/cypress/e2e/web_search_indexing.cy.js b/e2e-tests/cypress/e2e/web_search_indexing.cy.js index 067c1015d..9b46e4b43 100644 --- a/e2e-tests/cypress/e2e/web_search_indexing.cy.js +++ b/e2e-tests/cypress/e2e/web_search_indexing.cy.js @@ -1,6 +1,19 @@ -describe('Meta Robots Tag Test', () => { - it('should contain a "noindex, nofollow" robots meta tag on the homepage', () => { - cy.visit('http://ckan-dev:5000/private-admin/'); - cy.get('head meta[name="robots"]').should('have.attr', 'content', 'noindex,nofollow'); - }); -}); \ No newline at end of file +describe( + "Meta Robots Tag Test", + { + retries: { + runMode: 5, + openMode: 0, + }, + }, + () => { + it('should contain a "noindex, nofollow" robots meta tag on the homepage', () => { + cy.visit("http://ckan-dev:5000/private-admin/"); + cy.get('head meta[name="robots"]').should( + "have.attr", + "content", + "noindex,nofollow", + ); + }); + }, +);