I have fixed it by totally changing the permalink to
https://127.0.0.1:4001/wordpress/kennedy-barrister/
I do know that I originally had “O’connor” in the title and changed it to later (possibly after publishing) to “O’Connor”. I’m not sure whether this might have confused the slug/permalink generation process. In any case, all automaticallly-generated links are now working fine.