Fix default index for Router#replaceWith