79349713

Date: 2025-01-12 10:20:55
Score: 3
Natty:
Report link

revalidatePath not working for me for Nextjs 15. So you may try using the following way to redirect and refresh the page to display the latest data. I'm using useSearchParams and router from the modern next/navigation.

const redirect_path = useSearchParams().get("redirect") || "/";

router.push(redirect_path);
router.refresh();
Reasons:
  • RegEx Blacklisted phrase (3): not working for me
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: sarru1291