URI get("query") does not return '?' but doc says it does #1090

Closed
satazor opened this Issue Jan 17, 2012 · 1 comment

Projects

None yet

2 participants

@satazor
satazor commented Jan 17, 2012

The docs state that the '?' is added for me (I guess this means automatically) but it does not

query - (string) 'foo=bar&something=else' (the ? is added for you)

var test = new URI("http://google.com?teste=1");
console.log(test.get('query'));

@SergioCrisostomo
Member

Hi André! Yes, the ? is added.

For example:

var myURI = new URI('http://www.google.com/');
myURI.setData('foo', 'bar');
console.log(myURI.toString()); // http://www.google.com/?foo=bar 

So I close this now.

P.S.- André, tenho a tarefa de limpar a lista aqui. Sei que esta resposta é inutil agora, passados dois anos, mas respondí só para não fechar "a seco". Juntei-me à equipa à uns meses e estou a tentar "arrumar a casa" :)
Cumps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment