Skip to content

Commit

Permalink
Merge pull request #328 from D-BlindSide/master
Browse files Browse the repository at this point in the history
Avoid redirect request cache
  • Loading branch information
johnclause committed May 7, 2016
2 parents 56bd487 + 9b114d1 commit c38cf9c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions qtranslate_core.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ function qtranxf_init_language() {
$target = apply_filters('qtranslate_language_detect_redirect', $url_lang, $url_orig, $url_info);
//qtranxf_dbg_log('qtranxf_init_language: doredirect to '.$lang.PHP_EOL .'urlorg:'.$url_orig.PHP_EOL .'target:'.$target.PHP_EOL .'url_info: ',$url_info);
if($target!==false && $target != $url_orig){
nocache_headers();
wp_redirect($target);
//header('Location: '.$target);
exit();
Expand Down

0 comments on commit c38cf9c

Please sign in to comment.