I suggest you ...

BUG!!: please fix :)

Hi, found a bug..

if I am creating a link in my template, and part of that link is created using xpath or css selectors, then the shortening fails.

I have tested this many times.

FAIL:
{#shorten}http://www.example.com?wv_name={#select}.oL.aDm.az9 > span{/select}{/shorten}

the result is
https://goo.gl/M6MbiQ
which redirects to
http://www.example.com/?wv_name=%7Bc15b38fa0056abc7e%7D

what is should equal is this:
http://www.example.com?wv_name=Rebecca_test

the shortening function IS working, if I use it on an url without CSS selector or xpath.

so if I shorten like this:
{#shorten}http://www.example.com?wv_name=Rebecca_test
{/shorten}

then it works:
https://goo.gl/5OOSrw
which equals
http://www.example.com?wv_name=Rebecca_test

The css selector is correct, so no errors there. I also tried with {#escape} {/escape} around the css selector and also encoding and decidong using your tags for that - but nothing works

10 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    Benedict HarrisBenedict Harris shared this idea  ·   ·  Admin →

    0 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      Submitting...

      Feedback and Knowledge Base