Rewrite url when dynamically loading results