[wp-trac] [WordPress Trac] #62168: MutliSite install Network Admin links incorrect -- not using 'home' & 'siteurl' settings
WordPress Trac
noreply at wordpress.org
Fri Oct 4 22:00:50 UTC 2024
#62168: MutliSite install Network Admin links incorrect -- not using 'home' &
'siteurl' settings
----------------------------+-----------------------------
Reporter: gladsong | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version: 6.6.2
Severity: normal | Keywords:
Focuses: |
----------------------------+-----------------------------
I have a bedrock-installed wordpress6 multisite.
```
composer show | grep -i roots | sort
roots/bedrock-autoloader 1.0.4 An autoloader that
enables standard...
roots/bedrock-disallow-indexing 2.0.0 Disallow indexing of
your site on n...
roots/wordpress 6.6.2 WordPress is open
source software y...
roots/wordpress-core-installer 1.100.0 A custom installer to
handle deploy...
roots/wordpress-no-content 6.6.2 WordPress is open
source software y...
roots/wp-config 1.0.0 Collect configuration
values and sa...
roots/wp-password-bcrypt 1.2.0 WordPress plugin
which replaces wp_...
```
everything so far works. Except the links generated for the NetworkAdmin
Dashboard etc.
This is correct
```
mysql
>
SELECT option_name, option_value
FROM wp_options
WHERE option_name IN ('siteurl', 'home');
+-------------+------------------------------+
| option_name | option_value |
+-------------+------------------------------+
| home | https://dev.example.com |
| siteurl | https://dev.example.com/wp |
+-------------+------------------------------+
SELECT meta_key, meta_value
FROM wp_sitemeta
WHERE meta_key = 'siteurl';
+----------+-------------------------------+
| meta_key | meta_value |
+----------+-------------------------------+
| siteurl | https://dev.example.com/wp/ |
+----------+-------------------------------+
```
I'm logged as superuser to my webUI admin Dashboard.
The menu links in the upper right hand corner
```
MySites > example.com > Dashboard
```
are correct
```
https://dev.example.com/wp/wp-admin/
```
But for the MultiSite Network links
```
MySites > Network Admin > Dashboard
```
are INCORRECT
```
https://dev.example.com/wp-admin/network/
```
missing 'wp/' from the path.
Nav to
```
https://dev.example.com/wp-admin/network/
```
returns a 404.
Manual nav to
```
https://dev.example.com/wp/wp-admin/network/
```
correctly renders the Network Admin dashboard.
checking also
```
add_action('admin_bar_menu', function($admin_bar) {
error_log(network_admin_url());
}, 100);
```
returns,
```
https://dev.example.com/wp-admin/network/
```
i can workaround it in `functions.php`
```
add_filter('network_admin_url', function ($url) {
return str_replace('wp-admin/', 'wp/wp-admin/', $url);
});
```
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62168>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list