qTranslate and WordPress 3.0 redirect loop issue and temporary fix
Mikael Willberg
31.5.2010 English Projects · Hacking Bug · Wordpress
When a category link is accessed in the blog using non-default language, the request goes to endless redirect loop. Here is a quick-n-dirty fix to hide the problem. Include the following to theme's functions.php file
// A kludge for Redirect Loop issue for WordPress 3.0-RC1-15069 + qTranslate devel 2010.04.20 // 2010.05.31 22:47:37+0300 - Mikael Willberg (mig@hyper.fi) function mig_redirect_canonical_qt_kludge($redirect_url,$requested_url=null) { // Why this is sometimes empty ? if (!$requested_url) {return false;} } add_filter('redirect_canonical','mig_redirect_canonical_qt_kludge');
Everything seems to work with this, but who is to blame WordPress ? qTranslate ?
Update 26.6.2010
Works with 3.0 and Release Candidates.
Update 8.7.2010
Fixed in qTranslate 2.5.8.