Appending URL using dbr.url without ? and &

(5 posts) (2 voices)

Tags:

  1. duane, Member

    Hi.

    I'm trying to append a URL using dbr.url and when I add the parameters it also adds the '?' to the first parameter and '&' to subsequent ones despite these not being needed. Anyway to suppress these?

    It looks like this:
    SELECT 'dbr.url', 'http://myurl.com', '', 1, '/fixed1/=1', '/fixed2/=2', '/fixed3/=3', '/fixed4/=4', 'new_window';
    and should produce an url that looks like
    http://myurl.com/fixed1/12/fixed2/34/fixed3/56/fixed4/78
    (both dummy urls obviously)

    Instead what I get is
    http://myurl.com?/fixed1/12&/fixed2/34&/fixed3/56&/fixed4/78

  2. myDBR Team, Key Master

    Duane,
    for now myDBR tries to generate URL parameters. We can take a look if it could be extended to actual URL so it could support case like yours.

    --
    myDBR Team

  3. duane, Member

    OK - I found a workaround using dbr.html: in combination with concat. Not elegant but it works.

  4. myDBR Team, Key Master

    Duane,
    the latest build allows to use your syntax as well. If the parameter starts with "/" it is considered to be part of URL body and not a URL parameter.

    --
    myDBR Team

  5. duane, Member

    Great - tried it out and it works better than the workaround (because it encodes the URL properly).

    Thanks again.


Reply

You must log in to post.