I want to write a JavaScript or jQuery method to send the URL name as an email request and get the changed URL [more appropriate, REDIRECTED URL].
For example, if I add a random integer to the end of facebook.com, for example http://facebook.com/940 , the URL is redirected to http://www.facebook.com/melissa.miller.967 My requirement is to get this new URL Can anyone help me in this regard
$.post('/path/to/file', {url: short_url}, function(data) { window.location = data.url; });
Source: https://habr.com/ru/post/1484216/More articles:why and how __call__ is called in python decorators - python-2.7Stunning Firefox Browser Behavior - javascriptRight click continues to spread in Firefox - javascriptHow to select an item from the drop-down list using the Prism site? - ruby โโ| fooobar.comPythonic way to print a multidimensional complex numpy array into a string - pythonThe forecolor and backcolor buttons do not appear in TinyMCE - javascriptHow to copy a file from one path to another using django storage and amazon S3? - djangoCan you express the html mix and jade routes? - angularjsChange the hour when org-mode starts a new day - emacsWhy is the trivial loop in python running much slower than in C ++? And how to optimize it? - c ++All Articles