I believe it's because of lack of slash
router.replace("/notFound");
You could also do
router.replace({name: "notFound" });