There are two reasons I used the third-party library:
I was trying to keep this article short, but I could have also gone in to how so many times folks will try to do stuff like:
some_url = `${first_url}${(source_url.indexOf('?') > -1) ? '&' : '?'}${param_list.join('&')}`
Those are all really bad practices. The only real solution is to use URL libraries which treat a URL as the packed value that it is.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
There are two reasons I used the third-party library:
I was trying to keep this article short, but I could have also gone in to how so many times folks will try to do stuff like:
Those are all really bad practices. The only real solution is to use URL libraries which treat a URL as the packed value that it is.