Hi
@daniel, I have the skeleton from official grav skeletons (Hola-Site). Did you do the changes I said?
Look at this screenshot of your page (usin Chrome Inspector):
And look at this screenshot of my page:
If you look at it well, in your page the link points to #contact, meanwhile in my site the link points to /#contacto.
The "/" is the difference. The "#" character points to some section in the same page (identified by "id"), meanwhile the "/#" characters points to some section in the root page.
I'm going to leave all the code of navigation.html.twig, to help you:
{% macro loop(page) %}
{% for p in page.children.visible %}
{% set current_page = (p.active or p.activeChild) ? 'current' : '' %}
{% if p.children.visible.count > 0 %}
<li class="has-children {{ current_page }}">
<a href="{{ p.url }}">
{% if p.header.icon %}
<i class="fa fa-{{ p.header.icon }}"></i>
{% endif %}
{{ p.menu }}
<span></span>
</a>
<ul>
{{ _self.loop(p) }}
</ul>
</li>
{% else %}
<li class="{{ current_page }}">
<a href="{{ p.url }}">
{% if p.header.icon %}
<i class="fa fa-{{ p.header.icon }}"></i>
{% endif %}
{{ p.menu }}
</a>
</li>
{% endif %}
{% endfor %}
{% endmacro %}
<ul class="header-nav">
{% macro pageLinkName(text) %}{{ text|lower|replace({' ':'_'}) }}
{% endmacro %}
{% set home = page.find('/') %}
{% for module in home.collection %}
{% set current_module = (module.active or module.activeChild) ? 'current' : '' %}
{{ dump(module.redirect) }}
{% if module.header.visible %}
{% if page.slug == 'inicio' and module.modular_link %}
<li class=" {{ current_module }} ">
<a class="smoothscroll menu-hover"
href="#{% if module.redirect %}{{ module.redirect }}{% else %}{{ module.modular_link }}{% endif %}">{{ module.item_name }}</a>
</li>
{% elseif page.slug == 'inicio' and not module.modular_link %}
<li class=" {{ current_module }} ">
<a class="smoothscroll menu-hover"
href="#{% if module.redirect %}{{ module.redirect }}{% else %}{{ (module.menu) }}{% endif %}">{{ module.menu }}</a>
</li>
{% else %}
<li class=" {{ current_module }} ">
<a href="{{ home_url }}#{{ module.redirect }}" class="menu-hover">
{{ module.menu }}
</a>
</li>
{% endif %}
{% endif %}
{% endfor %}
{% for page in pages.children.visible %}
{% set current_page = (page.active or page.activeChild) ? 'current' : '' %}
<li class="{{ current_page }}">
<a href="{{ page.url }}" class="menu-hover">
{% if page.header.icon %}
<i class="fa fa-{{ page.header.icon }}"></i>
{% endif %}
{{ page.menu }}
</a>
</li>
{% endfor %}
</ul>
Find the line that I said at first of post and change it.
Good luck.