Multisite Frontend Admin Bar Links – All Point to Same Bad URI

This topic contains 4 replies, has 3 voices, and was last updated by  Sebastian 4 years, 10 months ago.

Author Posts

La4_sCSgD_BGU2c8gq_4GtI

Hi, we use WP Multisite with subdomains and are activating plugin on a per site basis (not network activating).

The ‘Microthemer’ links from within each site’s admin area (backend) menu work fine and load the fronted of the site with Microthemer =)

However, regardless of whether the frontend admin bar link is a subitem of primary menu or is a toplevel item, the link points to the same URI from frontend of all tested network sites, including network primary.

The ‘bad’ URI in question is:
https://example.com/wp-admin/network/admin.php?page=tvr-microthemer.php

Instead of (for example):
https://example.com/wp-admin/admin.php?page=tvr-microthemer.php
or
https://sub.example.com/wp-admin/admin.php?page=tvr-microthemer.php

Please advise, we can provide replication screenshots/screencast or creds if needed…

Kind Regards, Max

We do use Domain Mapping + Multi-Domains (from WPMUDEV) – we haven’t tested yet with Microthemer… will update as we proceed if needed =)


La4_sCSgD_BGU2c8gq_4GtI

…supdate: we have tested with a Doamin Mapping and Multi-Domains w/ mixed results…

Basically, the test with a mapped domain (for example, test.com) failed: though mapped domain (from permalinks?) is shown at that subsite’s Microthemer > Preferences as the ‘Frontend preview URL’ the link from backend uses the original network address (for example, test-site-1.example.com) rather than the mapped address… (from the frontend, the ‘Microthemer’ link points to same bad URI as above)

With a network subsite using a subdomain of a Multi-Domain (for example, sub.test.com), Microthemer works as it does for network primary (eg. very well except for issue with links from frontend admin bar as described above)

I’m assuming that if we map a domain to a subdomain of a Multi-Domain (eg. testing.com –> sub.test.com) then it will behave as above for a mapped domain of primary network domain – meaning it will likely use the ‘original’ address (in this example, sub.test.com) rather than mapped address (in this example, testing.com)

Hope this has been helpful! You have a really great plugin here! Even in testing its been delightful =)

Cheers, Max


Abland

Hi, Max,

I agree – great plugin! I’m not sure about your first post as I disable my admin bar for most purposes.

However, I found the same thing you discovered when mapping a domain. I used to use subdomains, then later switched to subdirectories, but all the same principle. I use WordPress MU Domain Mapping plugin.

I know you follow this easy but I’ll step by step for anyone reading who isn’t as certain.

1. In network admin Sites > All Sites
2. Hover over a sub-site and select Edit from the inline menu.
3. Under the four tabs select Settings.
4. Siteurl will be by default http://subdomain.domain.com
(or http://domain.com/subdomain/ for subdirectories)

5. If the mapped domain is mappeddomain.com change the Siteurl to
http://mappeddomain.com … and save

I looked in the mapping plugin for a constant that might be used to detect if a domain is mapped and change accordingly but haven’t pursued it too far yet. Microthemer is taking the site url which is by default off the primary domain because the mapping plugin doesn’t change that setting.


La4_sCSgD_BGU2c8gq_4GtI

@abland yah, yet also:
“mapped domain (from permalinks?) is shown at that subsite’s Microthemer > Preferences as the ‘Frontend preview URL’ ”

Since we know that with the plugin approach to domain mapping SITEURL and HOME are not altered from network originals where is this ‘Frontend preview URL’ value shown as Microthemer > Preferences being drawn from? I assumed permalinks… didn’t even look at code, too busy =)

One can do ‘pluginless’ domain mapping as you allude to above, yet that is just a totally different scenario, not even close to a substitute for domain mapping, its just different… however, with Multi-Domains from WPMUDEV where in the apex domain is changed and SITEURL and HOME actually show the ‘multi-domain’ Microthemer works fine… based on this, I’d also guess that it would work fine in a Multi-Network (such as w/ WP Multi-Network plugin)

Ok, thats enough forum for me! Got tasks to do and such =)

Kind Regards, Max


Sebastian

Hi Max,

Thanks for providing such a detailed account of your tests. I’d like Microthemer to work with all configurations of WordPress mulit-site, including domain mapping. I’ll need to do some research into this. But I’ve set up both directory-based and sub-domain based multi-site installs on my wamp server so I’ll run some tests of my own on this.

I’ll write back here with an update.

Cheers,
Sebastian

You must login or register to reply to this topic.