• Resolved peterborg

    (@peterborg)


    If I leave the Content to encode in QR code empty to use the current page url and also add a Query String the URL is ending up malformed assuming there are not query strings in the url. Eg URL to encode site.com/page?foo=bar and set query string to add abc=def so:


    [kaya_qrcode title_align="alignnone" querystring="abc=def" ecclevel="L" align="alignnone"]


    the link is ending up as site.com/page?foo=bar?abc=def

    Can this be fixed to append query string if they already exist please?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter peterborg

    (@peterborg)

    Resolved it by updating the following in the kaya-qr-code-generator > lib > functions.php file (line 67 for me)

    $qrcodeContent .= (!empty($qrcodeQueryString)) ? esc_attr((empty(count($_GET)) ? '?' : '&' ) . $qrcodeQueryString) : '';
    

    Would be great if this was accepted in the next update

    Plugin Author Kaya Studio

    (@kayastudio)

    Hello,
    Thank you for your comment and for using ‘Kaya QR Code Generator’.

    Yes that was indeed reported to me, and it will be fixed in the next update.

    Thank you for your help, best regards.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Query String Bug’ is closed to new replies.