Reputation: 2633
I am building a site using Foundation 5, PHP, HTML5 and CSS. I am using the Magellan Nav component from Foundation and it works as expected.
The issue I am having is that when I click on a nav link instead of just scrolling and adding a hash to the current url, it changes the hash of the window location but it also removes the current section by using (I think) the base href.
I tried changing the href of the Magellan links to ./habitaciones/#xxxxx
instead of just #xxxxx
, but then the script stops working and the smooth scroll doesn't work.
Is it an .htaccess setting, changing the base href or I should modify the magellan script?
My .htaccess is as follows: RewriteEngine On
RewriteRule ^/?$ index.php [L]
RewriteRule ^habitaciones/?$ habitaciones.php [L]
You can check the specific section here.
Upvotes: 0
Views: 206