Thanks Paul,
I'm almost there.
I removed the tick in the profile that was inserting the wrong URL.
The redirect is now going to the ISE MDM portal.
After accepting the the Ts & Cs & clicking on enrol it then goes to the Jamf enrolment page which is exactly what we want.
This was only when going to an internal page though. It is not redirecting when going to the internet so there is something not right with my ACL.