Open bfintal opened 10 months ago
What is the issue? (*)
If you have the following scenario, there is no way to access the account page. Also, all links in the account page will also direct to a 404:
'menu' => array( 'parent' => array( 'slug' => 'options-general.php', ), ),
Looks like the function call fs()->get_account_url() gives an invalid URL / or a 404 page
fs()->get_account_url()
The call fs()->get_account_url() returns this URL which is inaccessible:
http://multisite.local/wp-admin/network/options-general.php?page=stackable-account
But if you change the URL to this, it works:
http://multisite.local/wp-admin/network/admin.php?page=stackable-account
A workaround I've devised is to detect if the user is in multisite, main site and is network activated, then change the SDK setting dynamically:
$menu_slug = 'options-general.php'; if ( is_multisite() && is_main_site() && is_plugin_active_for_network( plugin_basename( __FILE__ ) ) ) { $menu_slug = 'admin.php'; }
What is the expected behavior?
It should go to the accounts page and all links in it should work.
🐞 bug report
What is the issue? (*)
If you have the following scenario, there is no way to access the account page. Also, all links in the account page will also direct to a 404:
Looks like the function call
fs()->get_account_url()
gives an invalid URL / or a 404 pageOther findings
The call
fs()->get_account_url()
returns this URL which is inaccessible:But if you change the URL to this, it works:
Workaround
A workaround I've devised is to detect if the user is in multisite, main site and is network activated, then change the SDK setting dynamically:
What is the expected behavior?
It should go to the accounts page and all links in it should work.