From d8d7f928fd57f1699700b5518f69727eedb05336 Mon Sep 17 00:00:00 2001 From: mitra-deriv Date: Fri, 26 Jan 2024 16:44:10 +0800 Subject: [PATCH] fix: :bug: add slash for path to redirect --- crowdin/messages.json | 2 +- gatsby-node.js | 28 ++++++++++++++++------------ 2 files changed, 17 insertions(+), 13 deletions(-) diff --git a/crowdin/messages.json b/crowdin/messages.json index e4ab56825c7..c9997923d84 100644 --- a/crowdin/messages.json +++ b/crowdin/messages.json @@ -85,7 +85,6 @@ "71535160": "Calculate the overnight fees for holding any open positions. The fees can be positive or negative depending on your swap rate.", "71630191": "Do not share your account information and other personal details with anyone via Telegram.", "71650838": "Speak simply and plainly, and not hide behind ambiguity", - "71755468": "In a journey spanning more than 23 years, we have grown to over 2.5 million customers worldwide. But our mission has remained the same:", "73765361": "Chief Audit Executive", "74138086": "Take control of your trades on Deriv MT5", "74593350": "3. Select Real account or Demo account.", @@ -4642,6 +4641,7 @@ "-1520902282": "No credit card needed", "-2022759357": "Make trading accessible to anyone, anywhere", "-77779780": "From inception, our goal was to break free of the high commissions and clunky products offered by traditional brokers. Also, we aim to deliver a first-class experience to digitally inclined traders, regardless of the size of their accounts.", + "-1321496264": "In a journey spanning 25 years, we have grown to over 2.5 million customers worldwide. But our mission has remained the same:", "-554746075": "Integrity", "-1917169640": "We serve our customers with fairness and transparency. We settle all contracts by the book and speak plainly and truthfully.", "-1679427554": "Customer focus", diff --git a/gatsby-node.js b/gatsby-node.js index 88ff0b4c9a1..94220e8c1e1 100644 --- a/gatsby-node.js +++ b/gatsby-node.js @@ -81,7 +81,7 @@ const BuildPage = (page, actions) => { }) createRedirect({ fromPath: `/contact-us`, - toPath: `/contact_us`, + toPath: `/contact_us/`, redirectInBrowser: true, isPermanent: true, }) @@ -423,19 +423,23 @@ exports.onCreateWebpackConfig = ({ stage, actions, loaders, getConfig }, { ...op usedExports: true, }, plugins: [ - new StylelintPlugin({...style_lint_options, ...options}), - new webpack.optimize.LimitChunkCountPlugin({maxChunks: 1}), + new StylelintPlugin({ ...style_lint_options, ...options }), + new webpack.optimize.LimitChunkCountPlugin({ maxChunks: 1 }), ], resolve: { modules: [path.resolve(__dirname, 'src'), 'node_modules'], }, - ...((stage === 'build-html' || stage === 'develop-html') ? { - module: { - rules: [{ - test: /analytics/, - use: loaders.null() - }] - } - } : {}), + ...(stage === 'build-html' || stage === 'develop-html' + ? { + module: { + rules: [ + { + test: /analytics/, + use: loaders.null(), + }, + ], + }, + } + : {}), }) -} \ No newline at end of file +}