Hey I was hoping someone could point my to some documents or an example of checking the lang version of a page so for example if I'm on an english page and it is also in Spainsh I would like to capture the URL of the Spanish page.
You can get the Page's language.
Locale getLanguage()
Also, there is a Language Manager with several functions.
The Spanish page should be the same but with a different language root. But if you are using aliases to also translate the URL path as well, then you should read that property.
See: