I just managed to do it with React’s router:
import { useHistory } from 'react-router-dom';
const Component = () => {
const history = useHistory();
history.push(`contentype/path/:id`)
}
I just managed to do it with React’s router:
import { useHistory } from 'react-router-dom';
const Component = () => {
const history = useHistory();
history.push(`contentype/path/:id`)
}