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
pavelw opened this issue Jan 18, 2015 · 1 comment
Closed

problem with search form - qtranxf_convertURL produces wrong URL #8

pavelw opened this issue Jan 18, 2015 · 1 comment

Comments

@pavelw
Copy link

pavelw commented Jan 18, 2015

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

@johnclause
Copy link
Member

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
None yet
Projects
None yet
Development

No branches or pull requests

2 participants