How to direct the 'Space Admin' link to go to 'Space Permissions' instead of 'Space Details'
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Purpose
For spaces that are very large, there's a Confluence bug that affects performance when a Space Administrator navigates to Browse > Space Admin: CONFSERVER-21575 - Space Admin loads slowly for large spaces
The reason is that the Space Admin link defaults to the Space Details page, which among other things will allow the administrator to set the Space Homepage. the Homepage drop-down will try to populate with every single page in the space, resulting in an enormous performance hit for spaces that contain lots of pages.
Solution
One workaround is to direct the Space Admin link to go to Space Permissions.
The below was written based on Confluence 3.5.x specifically. The files may look different if using other versions of Confluence.
Locate <confluence_install>/confluence/WEB-INF/lib/confluence-x.x.x.jar on the Confluence server.
Extract /plugins/space-tabs.xml from within the .jar file, and open it in a text editor.
Locate the following portion:
1 2 3 4 5 6 7 8 9 10 11
<web-item key="space-administration" name="Admin Tab" section="system.space" weight="70"> <label key="space.admin" /> <link linkId="space-admin-link">/spaces/editspace.action?key=$generalUtil.urlEncode($helper.spaceKey)</link> <condition class="com.atlassian.confluence.plugin.descriptor.web.conditions.HasSpaceCondition"/> <condition class="com.atlassian.confluence.plugin.descriptor.web.conditions.SpacePermissionCondition"> <param name="permission">administer</param> </condition> <tooltip key="browse.space.admin"> <param name="param1">$helper.space.name</param> </tooltip> </web-item>
Change 'editspace.action' to 'spacepermissions.action', and save the modified XML file.
Place this modified XML file in the following location, which overrides the default one from the .jar file: confluence_install/confluence/WEB-INF/classes/plugins/space-tabs.xml
Restart Confluence
Was this helpful?