Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

184
Views
send "&" in url angular

I'm using the Angular version 12 I want to send the following object in query params:

{
  dynamicQueryOperators: 6&dynamicQueryOperators=8
}

But in the end, the URL that is sent to the server is like this Request URL:

...dynamicQueryOperators=6**%26**dynamicQueryOperators=8

How can I prevent "&" from changing to "%26"?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

I was able to fix the bug by sending the variable as an array. If you send the variable like below:

this.query['dynamicQueryOperators'] = [6, 8];

Your header will be automatically created with two identical object keys and the character "&" will be placed between them.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!