We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7c78f9a + 9f2bc81 commit 9bbf663Copy full SHA for 9bbf663
_src-lp/scripts/vendor/store2015.js
@@ -192,7 +192,12 @@ window.StoreProducts.initSelector = function (config) {
192
}
193
} else {
194
// ex: www.bitdefender.com/business/fr/bsp-flashsale
195
- let country_from_path = window.location.pathname.split('/')[2];
+ const currentPath = window.location.pathname;
196
+ const parts = currentPath.split('/');
197
+ let country_from_path = currentPath.includes('/pages/') ? parts[3] : parts[2];
198
+
199
+ if (country_from_path === 'en') country_from_path = 'us';
200
201
const force_country = country_from_path;
202
if (extra_params == null) {
203
extra_params = { force_country: force_country };
0 commit comments