The Get method URL in angular is not transferred correctly

Source: Internet
Author: User

Angular in the Get method URL with a%, the transfer to the background to get the%25, the extra 25 to make get get failed.

The conversion is in URL encoding (http://www.w3school.com.cn/tags/html_ref_urlencode.html).

First use angular, toss for a half day to find a compromise method to solve.

Get (URL, config), generally we put the constraints into the config, get request will be in the config in the condition and URL splicing, it is this stitching led to some unexpected errors, simply we will be the wrong config directly stitching in the URL. This will not appear as the% becomes%25.

Of course, this is just around the problem, and not really solve, if you have a better solution, also hope to enlighten.


This article is from the "11416117" blog, please be sure to keep this source http://11426117.blog.51cto.com/11416117/1783472

The Get method URL in angular is not transferred correctly

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.