Jump to content

"Redirect to the canonical URL" disables use of greek chars in search


Recommended Posts

Hello, i set the option: 

Preferences / Seo & URLS / Set up urls / Redirect to the canonical URL

as 301 Moved Permanently (recommended once you have gone live)

 

I mentioned it fixes my homepage issue (when enabled it redirects / to /en or /el )

but it also makes my search engine not functional when i input greek chars.

 

While above option is disabled, a search result points to: 

/index.php?controller=search&orderby=position&orderway=desc&search_query=KEYWORD

but since i enable it search result url change to: 

search?orderby=position&orderway=desc&search_query=KEYWORD

and when i use greek chars to make any search the url is:

search?orderby=position&orderway=desc

with 0 results.

 

Any idea why greek chars are not passing in the url?

 

Regards,

-

C

Link to comment
Share on other sites

Hello, i set the option: 

Preferences / Seo & URLS / Set up urls / Redirect to the canonical URL

as 301 Moved Permanently (recommended once you have gone live)

 

I mentioned it fixes my homepage issue (when enabled it redirects / to /en or /el )

but it also makes my search engine not functional when i input greek chars.

 

While above option is disabled, a search result points to: 

/index.php?controller=search&orderby=position&orderway=desc&search_query=KEYWORD

but since i enable it search result url change to: 

search?orderby=position&orderway=desc&search_query=KEYWORD

and when i use greek chars to make any search the url is:

search?orderby=position&orderway=desc

with 0 results.

 

Any idea why greek chars are not passing in the url?

 

Regards,

-

C

 

I am using a module provided by a theme i bought..

I saw that on the default search module, everything is working ok. So when i compaterd the search forms i mentioned that the theme module instead of 

 

       <form method="get" action="{$link->getPageLink('search', true)|escape:'html'}" id="searchbox">

had
       <form method="get" action="{$link->getPageLink('/search',true)}" id="searchbox">
 
I updated with with the code from the default module and everything worked like a charm
Link to comment
Share on other sites

×
×
  • Create New...