Some buttons and links in Confluence point to bogus URIs

Good morning!

We've been using Confluence for a while, but since it's been reinstalled, there is a problem that appears for some but not all of the links and buttons in Confluence.

They point to things such as...



Essentially in the source, just to take a random example of the file

<li class="normal ajs-menu-item">
        <a id="browse-menu-link" class="browse trigger ajs-menu-title" href="#"><span><span>Browse</span></span></a>         <div class="assistive ajs-drop-down">
                        <ul  id="browse-menu-link-leading"                 class="section-leading first">
    <a  id="space-pages-link" href="//pages/listpages.action?key=R"  class=""   title="Browse pages in the Relaunch 2013 space">
                   <span>Pages</span></a>        </li>
    <a  id="space-blogposts-link" href="//pages/viewrecentblogposts.action?key=R"  class=""   title="Browse blogs in the Relaunch 2013 space">
                   <span>Blog</span></a>        </li>
    <a  id="space-labels-link" href="//labels/listlabels-heatmap.action?key=R"  class=""   title="Browse labels in the Relaunch 2013 space">
                   <span>Labels</span></a>        </li>
    <a  id="space-attachments-link" href="//spaces/listattachmentsforspace.action?key=R"  class=""   title="Browse attachments in the Relaunch 2013 space">
                   <span>Attachments</span></a>        </li>
    <a  id="space-mail-link" href="//mail/archive/viewmailarchive.action?key=R"  class=""   title="Browse mail in the Relaunch 2013 space">
                   <span>Mail</span></a>        </li>

Manually prepending the server name between http:// and the rest obviously works fine, but we'd rather do without.

If you have any ideas about what's causing this, let me know what you need to diagnose. I'll do my best!

Thanks for your help and hints!


2 answers

Just found this KB article which may be more relevant than my previous suggestions -

It's for JIRA, but it's likely that the same would apply to Confluence. Check your server.xml file where the Context path is set and if it's set to "/" change it to "" if users access Confluence at or "/confluence" if users access Confluence at


Hi Chris,

Did any of these suggestions fix the problem?


Hello Andrew, I had the same problem. Your final suggestion fixed the issue "Check your server.xml file where the Context path is set and if it's set to "/" change it to "" "

Hi Chris,

THe thing that immediately springs to mind is the base URL ( not being set in Browse -> Confluence Admin -> General Configuration

It's unlikely that the base URL would have been wiped in the config, but that's where I'd start.

Hope that helps?


Hi Andrew

Thanks for your help!

I've checked in the configuration, and the base url is already in. It's as follows:

Server Base Url

What is maybe relevant is that the port number is in the base URL. However, we access the server without as Apache is configured to virtually serve confluence on Port 80. The actual used address is

I've tried changing the value in the general configuration to without success.

Addendum: Visiting sends you back to Just for info. :-)

Hmmm, even though removing the port number from the base URL hasn't fixed this issue it needed to be done anyway as the base URL should be set to the URL that users use rather than the backend URL and port of the Confluence server, and at least that's one avenue of investigation closed off :-)

Next places I'd look (in no particular order) would be:

  • Anything in the log files related to problems with the base URL?
  • Browse -> Confluence Admin -> Look and Feel -> Custom HTML - any custom HTML trying to do any URL rewriting?
  • Browse -> Confluence Admin -> Look and Feel -> Layout - any changes to the default layouts?
  • Any custom themes?

Is there any pattern to the problem URLs? Does it only happen in a certain Space or Spaces? From the source sample you've provided they're all parameterised URLs, does it happen for just parameterised URLs (http://pages/editpage.action?pageId=786435) or does it happen for "normal" URLs as well (http://display/R/Home/My+Page)?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 29, 2018 in New to Confluence

How to use Confluence Cloud for stakeholder management

Most of us don’t need much convincing that stakeholder management is important. It just makes sense that keeping everyone in-the-know on projects and assigning clearly defined roles is key to having ...

1,169 views 4 6
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you