I have a web-item in the top navigation bar which in an icon. It displays fine, except when I am in an administration page. What am I doing wrong?
Atlassian-plugin.xml
<web-item key="my_item" section="system.top.navigation.bar" weight="99999"> <link linkId="my_item_link">/secure/Something!WebWork.jspa</link> <styleClass>aui-button aui-button-primary</styleClass> <label></label> <tooltip key="item.tooltip"></tooltip> <dependency>${project.groupId}.${project.artifactId}:my-item-resources</dependency> </web-item> <web-resource key="my-item-resources" name="my-item-resources"> <dependency>${atlassian.plugin.key}:common-resources</dependency> <transformation extension="js"> <transformer key="jsI18n"/> </transformation> <resource type="download" name="my-item.js" location="/js/my-item.js" /> <context>my-item</context> </web-resource> <web-resource key="common-resources" name="Common Web Resources"> <dependency>com.atlassian.auiplugin:aui</dependency> <dependency>com.atlassian.auiplugin:aui-experimental</dependency> <dependency>com.atlassian.auiplugin:aui-table-sortable</dependency> <transformation extension="js"> <transformer key="jsI18n"/> </transformation> <resource type="download" name="images/" location="/images" /> <resource type="download" name="my-item.css" location="/css/my-item.css"/> <resource type="download" name="my-item.png" location="/images/my-item.png"> <param name="content-type" value="image/png"/> </resource> <context>atl.general</context> <context>atl.admin</context> <context>common</context> <context>my-item<context> </web-resource>
my-item.css
#my_item_link {
background-image: url(“my-item.png”);
background-repeat: no-repeat;
background-size: 16px 16px;
background-position: 0px 16px;
background-color: transparent;
border-color: transparent
}