-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problems with segments #9
Comments
Hi, sorry for the late reply, overlooked this. Is |
Ciao André, thank you for your reply! My scenario is:
Thanks! |
Right, that's the intended behavior. Geomate will only know what the url for the other sites are, if the current template has an element with an url for the other sites. If not, it'll fall back to linking to the frontpage of the other sites. You can either do some conditionals and manually output the urls for template paths, or use singles instead of template paths. I reccommend the last, it's much more flexible. |
Same issue here, so I added a check if its an enty, and if its not then create the URLs from the path and site ids (which works), but what happens now is the GeoMate cookie is never created. So when I go to the new site, which has __geom=✪ in the URL, I get my language select popup continuously. The cookie is not created to stop it. Works OK for entries. Does the cookie only get created if its an entry?
Full code:
|
This had nothing to do with the original issue, but it looks like you always showed the popup, there's no conditional to check if the user already has selected a site (ie, Please open a new issue if you think there're additional issues related to this. |
Hello,
first of all, thank you for this great plugin. It's fantastic!
I think I've a problem with the segments.
This is the situation: I've a site (not yet online) with 2 languages.
case 1: example.com/room
If i pick one of the two languages I get redirect to the homepage (and not to the same page, translated, as expected).
The url I get is something like: example.com/en?__geom=✪
case 1: example.com/room/test
it works like a charm. I can switch between the translated versions of the same page
The url I get is something like: example.com/en/room/test?__geom=✪
My link is simple as this:
My geomate.php file is like this:
What do you think? Can you please help me?
Thank you!
The text was updated successfully, but these errors were encountered: