Fix bug when caching redirected-links