diff --git a/gatsby-node.js b/gatsby-node.js index 2fc6371fc6a..b8a63bc938f 100644 --- a/gatsby-node.js +++ b/gatsby-node.js @@ -18,6 +18,16 @@ exports.onCreatePage = ({ page, actions }) => { const who_we_are = /who-we-are/g.test(page.path) const is_cfds = /cfds/g.test(page.path) const is_options = /options/g.test(page.path) + const is_regulatory = /regulatory/g.test(page.path) + + if (is_regulatory) { + createRedirect({ + fromPath: `/regulatory/Deriv_Ltd_membership.pdf`, + toPath: `/regulatory/deriv-com-ltd-membership.pdf`, + redirectInBrowser: true, + isPermanent: true, + }) + } if (is_careers) { createRedirect({ diff --git a/src/pages/regulatory/index.tsx b/src/pages/regulatory/index.tsx index 8c7f3c0c84d..f4e44cfc3f2 100644 --- a/src/pages/regulatory/index.tsx +++ b/src/pages/regulatory/index.tsx @@ -470,7 +470,7 @@ const Regulatory = (locale: RegulatoryProps) => { , ]} diff --git a/static/regulatory/Deriv_Ltd_membership.pdf b/static/regulatory/deriv-com-ltd-membership.pdf similarity index 80% rename from static/regulatory/Deriv_Ltd_membership.pdf rename to static/regulatory/deriv-com-ltd-membership.pdf index 6c4e882e325..7d61721186d 100644 Binary files a/static/regulatory/Deriv_Ltd_membership.pdf and b/static/regulatory/deriv-com-ltd-membership.pdf differ