How to track url redirects in the browser?

97,481

Solution 1

Edited: It is now a decade later and there's a better way to do this

  1. goto https://deref.link/
  2. paste in the url in quetion.
  3. hit enter.
  4. read the results on the right hand side.

original 2011 answer

  1. Install FireBug 1

  2. open firebug

  3. goto the net tab

  4. click on the "persist" option

  5. enter your url

  6. watch the list of urls fetched change. you'll see something like this for your example:

    http://example.com/load/ 302 Moved temporarily
    http://example.com/load/1/ 302 Moved temporarily
    http://example.com/load/2/ 302 Moved temporarily
    http://example.com/load/3/ 200 OK

If you select one of those and open the twisty next to ti you can get the headers which will show you exactly what was requested and what the response was. IN particular you want to look at the Location header on the responses, as that tells your browser what to go load instead.


Footnotes

  1. Or use any other form of devtools for your favorite browser.

Solution 2

Now, when FireBug is integrated into developer tools you may enable persistent logs by next steps:

  1. Open DevTools (F12)
  2. Go into Toolbox options (forth icon from right top)
  3. Find Common preferences section
  4. Enable persistent logs
  5. Observe network requests and responses under the Network tab

Screenshot:

enter image description here

UPD
I update by FF to v61. In this version configuration slightly different:

  1. Open DevTools (F12)
  2. Enable Persists Logs

enter image description here

UPD
For newer version of FF, this options are at settings: enter image description here

Solution 3

If you don't want to install firebug, then you can use the Redirect Tracing Tool

Solution 4

Also you can use https://redirectinspector.com/ or other similar product with additional features - like trace redirects from different device types or from different countries (it's very usefull for testing CPA links etc...)

Solution 5

Since there was no answer for IE, the trick is to unselect "Clear entries on redirect"

IE developer tools

Share:
97,481

Related videos on Youtube

djmzfKnm
Author by

djmzfKnm

WebDev

Updated on September 17, 2022

Comments

  • djmzfKnm
    djmzfKnm almost 2 years

    When I type http://example.com/load/ in my browser and press ENTER, this website redirects me to http://example.com/load/1/, from there to http://example.com/load/2/ and then I finally landed on http://example.com/load/3/.

    These redirection happens at the website end, I am not aware where I am going. But I finally landed on this URL: http://example.com/load/3/.

    I want to track all the URLs my browser sees. I am not seeing it in my history as its redirect at website end. Is there any firefox addon or some tool which can track this for me?

    • Alpha King
      Alpha King about 12 years
      you may use fiddler for all your network needs
    • rubo77
      rubo77 over 4 years
      since firefox 57 there is a persist logs option in developer tools, see stackoverflow.com/a/46842778/1069083
  • LiuYan 刘研
    LiuYan 刘研 about 7 years
    This is what I'm looking for, it help me to track HTTP request and response before redirecting/reloading/new_page. Thanks!
  • Ravindra Bawane
    Ravindra Bawane about 5 years
    This question has already been answered, and your answer is rather light on details. Better answers with more information can be good, even when late, but this one is being down voted for these reasons.
  • hestellezg
    hestellezg over 4 years
    Footnotes should be taken seriously :)
  • Fred Shmed
    Fred Shmed over 2 years
    To be clear, the "Community" edit on July 23 was actually my edit... the OP that wrote this answer. Please don't revert it.
  • Oliver Bock
    Oliver Bock over 2 years
    I cannot see this option in Firefox 94.
  • Oliver Bock
    Oliver Bock over 2 years
    But I did find the about:config setting devtools.netmonitor.persistlog
  • Eugen Konkov
    Eugen Konkov over 2 years
    @OliverBock: I make screenshot where you can find Persist Logs at new versions