Viewing 9 replies - 16 through 24 (of 24 total)
  • Plugin Author Gunu

    (@grafcom)

    OK, Use Pre-Path Mode in Language settings and Post name in the Permalinks? You could try to save the Parmalinks again.

    Thread Starter redywebs

    (@redywebs)

    It is using Pre-Path Mode, what do you mean by saving the permalinks again? If you mean going to permalink settings and hit save changes, doesn’t make any difference.

    Plugin Author Gunu

    (@grafcom)

    how does your .htaccess file look?

    Thread Starter redywebs

    (@redywebs)

    Still did not found a solution to this.
    @gunu my .htaccess only contains default WordPress rewrite rules

    The WP Widget echos the form action like this:

    https://www.quicksilvertranslate.com/de

    which leads to a search url like this:

    https://www.quicksilvertranslate.com/de?s=test

    which gets redirected to the first post that slug fits the lang-prefix and puts the GET parameters at the end, which leads to a 404

    If you change the search url to

    https://www.quicksilvertranslate.com/de/?s=test

    then the search is done correctly.

    So it has to be something to do with the slash sign at the end of the action URL.

    Do you use a custom searchform.php in your theme? maybe you can edit the action to incorporate the last ‘/’ ?

    Happy Coding,
    Kuchenundkakao

    Thread Starter redywebs

    (@redywebs)

    @kuchenundkakao yes I do have a searchform.php with this code:

    <div class="search">
        <form method="get" action="<?php echo bloginfo('url'); ?>" class="clear">
    	<div>
        	<input type="text" id="s" name="s" value="" class="text" />
        	<input type="submit" value="Search" id="searchsubmit" class="submit" />
    	</div>
        </form>
    </div>

    How do I add the last slash?

    Thread Starter redywebs

    (@redywebs)

    Great!!! it works now.
    <form method="get" action="<?php echo bloginfo('url'); ?>/" class="clear">

    Thank you so much @kuchenundkakao

    no problem ??

    Please change the status to “resolved” if you can edit that (don’t know if only the plugin author can do that)

    Thread Starter redywebs

    (@redywebs)

    OK solved

Viewing 9 replies - 16 through 24 (of 24 total)
  • The topic ‘Bug found with search widget’ is closed to new replies.