portico: Improve detection of URL in product page JS.
portico: Improve detection of URL in product page JS.

The product page JS detects the page to run small bundle functions
but does not work correctly with language prefixes in the pathname,
such as /es/apps, so this properly detects that.

Fixes #5635.

showell/zulip,synicalsyntax/zulip,brainwane/zulip,eeshangarg/zulip,shubhamdhama/zulip,jrowan/zulip,Galexrt/zulip,vaidap/zulip,verma-varsha/zulip,vabs22/zulip,dhcrzf/zulip,timabbott/zulip,jackrzhang/zulip,zulip/zulip,zulip/zulip,punchagan/zulip,timabbott/zulip,andersk/zulip,jackrzhang/zulip,timabbott/zulip,Galexrt/zulip,jackrzhang/zulip,mahim97/zulip,dhcrzf/zulip,showell/zulip,mahim97/zulip,punchagan/zulip,tommyip/zulip,dhcrzf/zulip,jrowan/zulip,punchagan/zulip,rht/zulip,hackerkid/zulip,rishig/zulip,rishig/zulip,brainwane/zulip,vabs22/zulip,rishig/zulip,jackrzhang/zulip,mahim97/zulip,tommyip/zulip,punchagan/zulip,eeshangarg/zulip,synicalsyntax/zulip,jrowan/zulip,zulip/zulip,shubhamdhama/zulip,synicalsyntax/zulip,rht/zulip,Galexrt/zulip,andersk/zulip,shubhamdhama/zulip,synicalsyntax/zulip,synicalsyntax/zulip,tommyip/zulip,jackrzhang/zulip,synicalsyntax/zulip,kou/zulip,kou/zulip,amanharitsh123/zulip,verma-varsha/zulip,eeshangarg/zulip,timabbott/zulip,vaidap/zulip,brainwane/zulip,vabs22/zulip,mahim97/zulip,rishig/zulip,timabbott/zulip,rishig/zulip,jackrzhang/zulip,timabbott/zulip,hackerkid/zulip,punchagan/zulip,rht/zulip,eeshangarg/zulip,amanharitsh123/zulip,tommyip/zulip,rht/zulip,kou/zulip,shubhamdhama/zulip,vabs22/zulip,brockwhittaker/zulip,jackrzhang/zulip,Galexrt/zulip,showell/zulip,tommyip/zulip,jrowan/zulip,jrowan/zulip,vaidap/zulip,Galexrt/zulip,kou/zulip,synicalsyntax/zulip,shubhamdhama/zulip,rht/zulip,vabs22/zulip,vabs22/zulip,andersk/zulip,verma-varsha/zulip,tommyip/zulip,brockwhittaker/zulip,timabbott/zulip,andersk/zulip,kou/zulip,Galexrt/zulip,brockwhittaker/zulip,dhcrzf/zulip,hackerkid/zulip,dhcrzf/zulip,verma-varsha/zulip,verma-varsha/zulip,brockwhittaker/zulip,tommyip/zulip,punchagan/zulip,eeshangarg/zulip,kou/zulip,hackerkid/zulip,eeshangarg/zulip,dhcrzf/zulip,showell/zulip,mahim97/zulip,amanharitsh123/zulip,kou/zulip,andersk/zulip,andersk/zulip,hackerkid/zulip,vaidap/zulip,vaidap/zulip,hackerkid/zulip,showell/zulip,andersk/zulip,jrowan/zulip,rishig/zulip,punchagan/zulip,Galexrt/zulip,hackerkid/zulip,shubhamdhama/zulip,amanharitsh123/zulip,eeshangarg/zulip,showell/zulip,amanharitsh123/zulip,dhcrzf/zulip,verma-varsha/zulip,brainwane/zulip,rht/zulip,brainwane/zulip,vaidap/zulip,zulip/zulip,zulip/zulip,rht/zulip,showell/zulip,zulip/zulip,brainwane/zulip,amanharitsh123/zulip,brainwane/zulip,zulip/zulip,brockwhittaker/zulip,brockwhittaker/zulip,shubhamdhama/zulip,mahim97/zulip,rishig/zulip