Index: trunk/phase3/includes/Wiki.php |
— | — | @@ -225,6 +225,8 @@ |
226 | 226 | // Redirect loops, no title in URL, $wgUsePathInfo URLs |
227 | 227 | } else if( $action == 'view' && !$request->wasPosted() && |
228 | 228 | ( ( !isset($this->GET['title']) || $title->getPrefixedDBKey() != $this->GET['title'] ) || |
| 229 | + // No valid variant in URL (if the main-language has multi-variants), to ensure |
| 230 | + // the Accept-Language would only be added to XVO when a 301 redirection happened |
229 | 231 | ( !isset($this->GET['variant']) && $perferred != $wgContLang->getCode() && |
230 | 232 | $wgContLang->hasVariants() && !$wgUser->isLoggedIn() ) ) && |
231 | 233 | !count( array_diff( array_keys( $this->GET ), array( 'action', 'title' ) ) ) ) |