When long url is saved on DB is being modified

Hello, we are requesting short urls consuming the api.
we notice that when se send the folowing long url for example:

the api response with the short url, but its pointing to: (removed the https part due the new user restriction)

if i check the long_url on the database it has been saved as:

But when i short the same long url using the admin page…everything works fine and if i check the database i see that the long url has been saved correctly.

can this be related to the yourls-api.php? o maybe is there a setting i’m missing on the configuration?


The URL passed to the API is, as explained in the readme, properly encoded, right?

yes it is.
I was wondering if the problema could be that on the long URL after CampingID=983
we have “&” maybe the API is thinking that everything that goes after it is a new paramater and not part of the long URL?

Hence the need for encoding.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.