I am running a multisite network with around 8 websites. Currently, some sites have more content than others(for example, mysite.com/uk and mysite.com/dk have more posts). What I am trying to achieve is to create a redirect functionality for my network.
Expected user experience: visitor lands on one of the pages, we check his GEOIP location and if he is not from UK we display a notice if he wants to navigate to the native version of the current page he is on(if it exists). Example--- visitor lands on mysite.com/uk/pricing, but he is from Denmark ---> display the link to navigate to mysite.com/dk/priser.
I've already implemented the first part where we check his geoip location and then redirect the visitor to the base url of the website. Taking the previous example, I've done the first part where I redirect from mysite.com/uk/[any_url] to mysite.com/dk.
However, now I am stuck. I don't really know how wordpress works as I started learning php&wordpress 1 week ago. How should I check if the current page url has an equivalent on other sites?
Edit: I am not looking for a full solution, but rather steps into the right direction.