SOLVED Plugins Open In New Window v64

Vetinari

Registered
PartnerNOC
Sep 4, 2017
1
0
1
Houston
cPanel Access Level
Root Administrator
Has anyone else been able to get a WHM plugin to open in the same window post v64? Neither target=mainFrame nor target=_self has worked for me in either of these versions. running v66 at the moment. Confirmed that /usr/local/cpanel/bin/show_appconfig shows target: _self on the plugin in question. I even tried target=_self in the /var/cpanel/apps conf file for the Configure ClamAV Scanner plugin, and that too still opens in a new window.

If anyone has a link to an example plugin that opens in the same window, I would be happy to review that.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,228
463
Hello,

The updated behavior is documented under the "target" key on the following document:

Guide to WHM Plugins - AppConfig Configuration File - Software Development Kit - cPanel Documentation

Here's the corresponding entry from the 64 Release Notes:

WHM plugins open in a new window by default
WHM plugins now open in a new browser window by default when you access them via WHM's Manage Plugins interface (Home >> cPanel >> Manage Plugins).
Note:
Plugin developers can alter the default behavior. For more information, read our Guide to WHM Plugins - AppConfig Configuration File documentation.
In the 66 Release Notes:https://documentation.cpanel.net/display/66Docs/66+Release+Notes

Team: Phoenix
Refresh after update
After the upgrade to cPanel & WHM version 66 finishes, WHM users in an active session must refresh their browser windows. Until they do, they may see additional frames within the WHM interface on each page load.
The WHM interface has transitioned from two framesets and three frames in cPanel & WHM version 62 to no frames or framesets in cPanel & WHM version 66.
  • Plugin developers must now explicitly include the WHM header and footer template files in custom interface files.
  • WHM interfaces that open in frames and iframes now hide WHM's left navigation menu by default.
  • For more information, read our Guide to WHM Plugins documentation.
Note:

Users who encounter an incorrect locale in WHM's Home interface after they upgrade to cPanel & WHM version 66 must run the following command:

mv /var/cpanel/caches/_generated_command_files{,.backup}
This command clears the locale caches, which corrects the issue.
Let us know if this helps.

Thank you.
 

kssuhesh

Member
Jan 11, 2009
20
5
128
Kochi
cPanel Access Level
Root Administrator
Twitter
Hello,

I'm setting up a whm plugin in the same window and added "target=_self" in app config. But still the plugin interface open in new window. ( cPanel version used is v68.0.37 ). Can you give me some hints for this.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,228
463
I'm setting up a whm plugin in the same window and added "target=_self" in app config. But still the plugin interface open in new window. ( cPanel version used is v68.0.37 ). Can you give me some hints for this.
Hello @kssuhesh,

Can you let us know the contents of your plugin's app configuration file?

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,228
463
  • Like
Reactions: kssuhesh

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,228
463
Hello,

I'm glad to see that helped. Thank you for sharing the outcome.