Select to view content in your preferred language

Prevent full page refresh when returning to hub home page

993
2
Jump to solution
01-15-2021 04:44 AM
NeilWebber
Occasional Contributor

Hi, new to hub and finding my way, so probably doing something fundamentally wrong.

I have a custom html header that creates links to my pages in my hub site. As per documentation, by using the relative path for the page I can have it just appear below the header without a full refresh. But, when I go back 'Home' the page does a full refresh. Some template sites seem to avoid this (i.e. the home page just appears back below the header without full refresh - which I like) but I can't see how - there doesn't appear to be a standard setting or anything.

e.g. of my header html

<nav class="navbar navbar-default navbar-static-top first-tier">
  <div class="container">
    <div class="navbar-header">
      <div class="navbar-brand">
        <div class="site-logo">
          <img src="https://myorg.maps.arcgis.com/sharing/rest/content/items/e1cfaff17f2849d8a5fe74278cb8d9c5/data" alt="logo">
        </div>
     </div>
    </div>
  </div>
</nav>
<nav class="navbar navbar-inverse navbar-static-top second-tier" role="navigation">
      <div class="container">
         <div class="navbar">
          <ul class="nav navbar-nav">
            <li class="active"><a href="https://myteam-myorg.hub.arcgis.com/"><h5>Home</h5></a></li>
            <li><a href="/pages/testpage"><h5>Page 1</h5></a></li>
          </ul>
        </div>
      </div>
    </nav>

I am not an html expert and picked this up from elsewhere, editing for my own org. details.

Any pointers are gratefully received

Neil

 

Tags (4)
0 Kudos
1 Solution

Accepted Solutions
KlaraSchmitt
Esri Regular Contributor

Hello,

Instead of using <a href="https://..."> for your home link, try <a href="/">.

View solution in original post

2 Replies
KlaraSchmitt
Esri Regular Contributor

Hello,

Instead of using <a href="https://..."> for your home link, try <a href="/">.

NeilWebber
Occasional Contributor

Thank you Klara - so simple, I knew I'd be missing something straightforward.

0 Kudos