fix making cached links with problematic routes