title: xPages: missing NSF in link using Bootstrap
body: <p>I am having problems with links in navbar's using Bootcamp in XPages. I have an Internet Site document for develop.test.com. The Home URL on the page is Web/develop.nsf. I have the launch option of the DB set to the xPage xpHomePage.xsp. When I go to develop.test.com my Bootstrap site with menu displays perfectly. My problem is that the links in the navbar are inconsistent. Sometimes I have the DB name included, sometimes not? </p>
  
  <p>The link Abmelden (near the bottom of the code) converts to <a href="http://develop.test.com/web/develop.nsf?logout" rel="nofollow">http://develop.test.com/web/develop.nsf?logout</a> which would be correct. The dropdown "Anwesenheiten/offen nach Name converts to <a href="http://develop.test.com/Web/xpAnwesendOffenNachName" rel="nofollow">http://develop.test.com/Web/xpAnwesendOffenNachName</a> ==> somehow the develop.nsf is missing? I just cannot work out why. </p>
  
  <p>I could of course just hardcode the NSF into the link - just doesn't seem right to me :o)</p>
  
  <p>Thanking you for any help given. </p>
  
  <p>=========== here is the code</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;xp:view xmlns:xp="http://www.ibm.com/xsp/core"&gt;
      &lt;xp:div id="header" disableTheme="true"&gt;
          &lt;!-- This is the banner --&gt;
          &lt;nav class="navbar-header navbar-inverse navbar-fixed-top" role="navigation" id="header"&gt;
              &lt;div class="container"&gt;
                  &lt;div class="navbar-header"&gt;
                      &lt;a class="navbar-brand" href="xpHomePage.xsp"&gt;
                          &lt;xp:text escape="true" id="computedField1"&gt;
                              &lt;xp:this.value&gt;&lt;![CDATA[#{javascript:@DbTitle()}]]&gt;&lt;/xp:this.value&gt;
                          &lt;/xp:text&gt;
                      &lt;/a&gt;
                      &lt;!-- this is the hamburger menu that gets shown when the view is small enough --&gt;
                      &lt;button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"&gt;
                          &lt;span class="sr-only"&gt;Navigation umstellen&lt;/span&gt;
                          &lt;span class="icon-bar"&gt;&lt;/span&gt;
                          &lt;span class="icon-bar"&gt;&lt;/span&gt;
                          &lt;span class="icon-bar"&gt;&lt;/span&gt;
                      &lt;/button&gt;
                  &lt;/div&gt;
                  &lt;!-- create a div so the header is collapsed when tiny --&gt;
                  &lt;div class="collapse navbar-collapse" id="header-menu"&gt;
                    &lt;!--  and now the actual menu --&gt;
                      &lt;ul class="nav navbar-nav navbar-right navbar-inverse"&gt;
                          &lt;li class="dropdown"&gt;
                              &lt;a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"&gt;
                                  Anwesenheiten
                                  &lt;span class="caret"&gt;&lt;/span&gt;
                              &lt;/a&gt;
                              &lt;ul class="dropdown-menu"&gt;
                                  &lt;li&gt;
                                      &lt;a href="xpAnwesendOffenNachName"&gt;offen nach Name&lt;/a&gt;
                                  &lt;/li&gt;
                                  &lt;li&gt;
                                      &lt;a href="xpAnwesendOffenNachStandort"&gt;offen nach Standort&lt;/a&gt;
                                  &lt;/li&gt;
                                  &lt;li role="separator" class="divider"&gt;&lt;/li&gt;
                                  &lt;li&gt;
                                      &lt;a href="xpAnwesendFreiNachName"&gt;freigegeben nach Name&lt;/a&gt;
                                  &lt;/li&gt;
                          &lt;li&gt;
                             &lt;a href="xpAnwesendFreiNachStandort"&gt;freigegeben nach Standort&lt;/a&gt;
                          &lt;/li&gt;
                          &lt;li&gt;
                             &lt;a href="xpAnwesendFreiNachMonat"&gt;freigegeben nach Monat&lt;/a&gt;
                          &lt;/li&gt;
                              &lt;/ul&gt;
                          &lt;/li&gt;
                          &lt;li&gt;
                              &lt;a href="?logout"&gt;
                                  &lt;span class="glyphicon glyphicon-log-out"&gt;&lt;/span&gt;
                                  &lt;xp:text&gt;
                                      &lt;xp:this.value&gt;&lt;![CDATA[#{javascript:" Abmelden"}]]&gt;&lt;/xp:this.value&gt;
                                  &lt;/xp:text&gt;
                              &lt;/a&gt;
                          &lt;/li&gt;
                      &lt;/ul&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/nav&gt;
      &lt;/xp:div&gt;
  &lt;/xp:view&gt;
  </code></pre>