wordpress-sdk icon indicating copy to clipboard operation
wordpress-sdk copied to clipboard

Multisite - If first-path is `options-general.php` it redirects to 404

Open bfintal opened this issue 7 months ago • 0 comments

🐞 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? Since options-general is not available, either do not redirect for first-path or redirect to the main site's URL.

bfintal avatar Dec 04 '23 11:12 bfintal