Link to index.html


#1

Hi,

I am using the split view template available here:

My issue is that I am trying to link back to the index page from the side menu. I am using this code in the menu:

<ul>
   <li>
    <a href="/" data-view=".view-main" class="panel-close">Home</a>
  </li>
  <li>
     <a href="/about/" data-view=".view-main" class="panel-close">About</a>
  </li>
  <li>
     <a href="/form/" data-view=".view-main" class="panel-close">Form</a>
  </li>
</ul>

And have the following in routes.js:

  {
    path: '/',
    url: './index.html'
  },
  {
    path: '/about/',
    url: './pages/about.html',
  },
  {
    path: '/form/',
    url: './pages/form.html',
  },

However when I navigate to the about or the form page and then try to go to the home page nothing happens and no errors are shown in console.

Any thoughts?

Thanks,
Ed.


#2

Just checked and it works fine for me. Issues somewhere on your side. Would be good to see live example with the issue