The top answer doesn't work anymore But this does work :
import { navigate } from "gatsby"
navigate(`/payment/${stripe_plan_id.id}`)
The top answer doesn't work anymore But this does work :
import { navigate } from "gatsby"
navigate(`/payment/${stripe_plan_id.id}`)