Great recipe - almost works great for what I need it for. I have two localized versions of a website (one for canada and one for the US - both in english) that have some pages that are different and some that are the same. My goal was to have the urls of canadian specific pages prefixed with /can/. I've got that all working great, the menus are building properly, etc.
But I'm having one problem - if I link to a page within the content editor, where there is a canadian version and a US version (say /about-us and /can/about-us), the US link is always added by default. I would like to somehow override that default behavior so that if the user is editing the canadian version of the page and they create a link to another page with a canadian "translation", the /can/ prefix is added.
I've looked through the docs and the api and can't seem to find how I would override the "add link" functionality within the CMS main editor. Ideas?