Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem with search form - qtranxf_convertURL produces wrong URL #8

Closed
herrvigg opened this issue Jun 21, 2018 · 1 comment
Closed
Labels
legacy issue Legacy issue imported from original repo

Comments

@herrvigg
Copy link
Collaborator

Issue by pavelw
Sunday Jan 18, 2015 at 13:13 GMT
Originally opened as qTranslate-Team/qtranslate-x#8


Hello,

current version of plugin makes for me the wrong translation of URL.

I am switched to non-default language and trying to use search form produces wrong URL

the blog is not on home url, but on subpage: http://mypageblog/blog/

typing the query in search box produces wrong URL http://mypageblog/blog/pl/pl/?s=dsa

commenting out in function:

function qtranxf_fixSearchForm($form) {
//$form = preg_replace('#action="[^"]*"#','action="'.trailingslashit(qtranxf_convertURL(get_home_url())).'"',$form);
return $form;
}

fixes the problem, the URL is correct: http://mypageblog/blog/pl/?s=dsa

i guess there is some kind of problem in the qtranxf_convertURL function.

more info available upon request.

best regards,
Pawel

@herrvigg herrvigg added the legacy issue Legacy issue imported from original repo label Jun 21, 2018
@herrvigg
Copy link
Collaborator Author

Comment by johnclause
Saturday Jan 31, 2015 at 05:41 GMT


Indeed, @pavelw, this is no longer needed, since we recently adjusted home_url() function to fix a number of other problems. This will be changed in release 3.0. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
legacy issue Legacy issue imported from original repo
Projects
None yet
Development

No branches or pull requests

1 participant