Modify ↓
Ticket #215 (closed: invalid)
Diana
| Reported by: | tuupola@… | Owned by: | |
|---|---|---|---|
| Priority: | Milestone: | ||
| Component: | Version: | ||
| Keywords: | Diana,SPAM | Cc: | |
| Blocking: | Blocked by: |
Description
If url given to $.get() already contains GET parameters and additional params hash is given the request querystring will be broken.
var get = {"xxx" : "yyy"};
var url = "http://www.example.com/test.php?foo=bar";
$.get(url, get, function(f) {
console.log(f);
});
/* Resulting url: */
/* http://www.example.com/test.php?foo=bar?xxx=yyy */
Live example at:
http://www.appelsiini.net/~tuupola/test/jquery/get_querystring.html
Change History
comment:2 Changed 7 years ago by joern
- Priority set to blocker
- Resolution set to invalid
- Status changed from reopened to closed
- Component set to ajax
- Type set to bug
SPAMPOLICE
comment:3 Changed 7 years ago by Rebecca
- Cc Rebecca added; "" removed
- Component changed from ajax to 1
- Summary changed from Params to $.get() are appended wrong to querystring to Rebecca
- Priority changed from blocker to 1
- Version set to 1
- Milestone set to 1
- Keywords Rebecca added; get, querysting, ajax removed
- Type changed from bug to 1
comment:4 Changed 7 years ago by Diana
- Cc Diana added; Rebecca removed
- Keywords Diana added; Rebecca removed
- Summary changed from Rebecca to Diana
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

Fixed in SVN.