corrected loading of links after 302 and 401