Skip to content

Commit 10de2e7

Browse files
author
MB
committed
[Yandex.net] Point (www.)? to yandex.ru
1 parent c81c85e commit 10de2e7

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

‎src/chrome/content/rules/Yandex.net.xml‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
1313
Problematic subdomains:
1414
15+
- (www.)? ²
1516
- www.browser ¹
1617
- element ²
1718
- img.encyc *
@@ -27,7 +28,7 @@
2728
2829
Fully covered subdomains:
2930
30-
- (www.)? (www → ^)
31+
- (www.)? (→ yandex.ru)
3132
- internetometr.download.cdn
3233
- sandbox.api.maps
3334
- 0\d.pvec.maps ([1-4])
@@ -162,8 +163,10 @@
162163
<rule from="^http://(?:www\.)?([^.]+)\.yandex\.net/"
163164
to="https://$1.yandex.net/" />
164165

165-
<rule from="^http://(?:www\.)?yandex\.net/"
166-
to="https://yandex.net/" />
166+
<!-- Redirect keeps path, args, but not forward slash:
167+
-->
168+
<rule from="^http://(?:www\.)?yandex\.net/+"
169+
to="https://yandex.ru/" />
167170

168171
<rule from="^http://(internetometr\.download\.cdn|sandbox\.api\.maps|0\d\.pvec\.maps)\.yandex\.net/"
169172
to="https://$1.yandex.net/" />

0 commit comments

Comments
 (0)