wordpress-sdk
wordpress-sdk copied to clipboard
Multisite - If first-path is `options-general.php` it redirects to 404
🐞 bug report
Behavior:
-
What is the issue? (*)
When in multisite and you have this SDK setting:
'first-path' => 'options-general.php?page=some-page',
Things work when activating the plugin in a single site or in a site within multisite. But when network activating in a multisite or activating in the main site in a multisite, it directs to a 404 page.
This is because the network path is not available in the main multisite site.
-
What is the expected behavior?
Sinceoptions-general
is not available, either do not redirect forfirst-path
or redirect to the main site's URL.