Release 4.2111.0
WSTEAMA-1558 - Script switch refactor (#12328)
* WSTEAMA-1558 - Script switch refactor
* ScriptLink test suite update
* Remove path-to-regexp
* Update index.tsx
* Bundle size update
* Remove test for variant topic ID as scriptSwitchId
is now removed
* Fix server url test
* Handle .amp
case
- We want to redirect people from AMP to canonical, so remove .amp
extension
* Update index.test.tsx
* Update index.tsx
* Don%27t maintain query params
- Could lead to a scenario whereby a user on a paginated page switches the script to a page that doesn%27t exist. So its best to get rid of the query params on script change.
* cache
* Ensure only variant path part is changed
* Update index.test.jsx
* Update index.tsx
* Update index.tsx
* Hide script switch button on Uzbek topics pages
* Temporarily hide the script switch button Topic pages
* Show script switch button again