WordPress.org

Forums

Multisite Language Switcher
[resolved] Incorrect links to category on a domain-mapped multisite (9 posts)

  1. Petruha
    Member
    Posted 3 years ago #

    MLS v.0.9.5 works wonders for posts - just what I wanted!
    Unfortunately in my setup, while switching between categories MLS produces incorrect links.
    start from the URL (correct):
    http://myelectrons.ru/category/power-supplies/
    clicking US leads to (wrong):
    http://myelectrons.com/category/power-supplies/
    while it must have been (the working one):
    http://myelectrons.com/blog/category/power-supplies/
    clicking ru_RU from there again gives an incorrect URL:
    http://myelectrons.ru/blog/category/power-supplies/

    I am ready to make my hands dirty - so much I love this plugin :) But any help from the author would be greatly appreciated!
    Thanks in advance,
    - Serge.

    http://wordpress.org/extend/plugins/multisite-language-switcher/

  2. csigncsign
    Member
    Posted 3 years ago #

    Yes, have the same problem with multisite installation and domain mapping (blogs in subdirectories mapped to subdomain)!

    Any solutions?

  3. Dennis Ploetner
    Member
    Plugin Author

    Posted 3 years ago #

    I have no quick solution for this because (to be honest) I never tried a setup like this.

    I visited your site and there is something curious:

    http://myelectrons.ru/category/power-supplies/ (with flag) points to
    http://myelectrons.com/category/power-supplies/ (without flag)

    and

    http://myelectrons.com/blog/category/power-supplies/ (with flag) points to
    http://myelectrons.com/ru/blog/category/power-supplies/ and leads to http://myelectrons.ru/blog/category/power-supplies/ (without flag)

    Are there more then this two sites in your network? I ask because there is also the possibility to change the blog-collection: https://github.com/lloc/Multisite-Language-Switcher/wiki/Change-the-blog-collection

    Cheers,
    Dennis.

  4. Petruha
    Member
    Posted 3 years ago #

    Hi Dennis,
    appreciate your prompt response!

    I do have only two sites in that WP multisite install.
    The main one sits at myelectrons.com and displays all blog posts under myelectrons.com/blog (which is as designed in multisite, I believe).

    The second one is myelectrons.com/ru, then it was domain mapped to (from?) myelectrons.ru.

    Thanks and best regards,
    - Serge.

    PS. I've no problem giving you admin access to my site, if that can simplify / speed up the fix ;)

  5. Dennis Ploetner
    Member
    Plugin Author

    Posted 3 years ago #

    I'm quite sure there must be something wrong with the setup because for the categories (for example) I use a standard function of WP (get_term_link( (int) $this->args[0], $taxonomy )) after a switch to the other blog when I want to have the link for the sister-category.

    Could be interesting to see how the setup is made. Write me to my mail-address re [at] lloc [dot] de.

    Cheers,
    Dennis.

  6. Petruha
    Member
    Posted 3 years ago #

    Submitted a new issue at github.

    Thanks, Dennis, for looking into the issue!
    No rush for me indeed, but I hope resolving that little problem may help others too.

  7. Dennis Ploetner
    Member
    Plugin Author

    Posted 3 years ago #

    OK, excellent.

  8. mgiota
    Member
    Posted 2 years ago #

    I also have the same problem. What can I do to solve this?

    I would appreciate your help!

  9. Dennis Ploetner
    Member
    Plugin Author

    Posted 2 years ago #

    @mgiota Please describe your problem in a new thread because this was a problem in another version.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Multisite Language Switcher
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic