Learn2 Theme: prev/next not working

Hey guys,
Im currently having a problem with the Learn2 prev/next buttons…
Their href is empty…

inside docs.html.twig:

{% extends 'partials/base.html.twig' %}
{% set tags = page.taxonomy.tag %}

{% if tags %}

    {% set progress = page.collection({'items':{'@taxonomy':{'category': 'docs', 'tag': tags}},'order': {'by': 'default', 'dir': 'asc'}}) %}
{% else %}
    {% set progress = page.collection({'items':{'@taxonomy':{'category': 'docs'}},'order': {'by': 'default', 'dir': 'asc'}}) %}
{% endif %}

{% block navigation %}
	<div id="navigation">
	{% if not progress.isFirst(page.path) %}
	    <a class="nav nav-prev" href="{{ progress.nextSibling(page.path).url }}"> <i class="fa fa-chevron-left"></i></a>
	{% endif %} 

	{% if not progress.isLast(page.path) %}
	    <a class="nav nav-next" href="{{ progress.prevSibling(page.path).url }}"><i class="fa fa-chevron-right"></i></a>
	{% endif %}
	</div>
{% endblock %}

{% block content %}
    {% include 'partials/page.html.twig' %}
{% endblock %}

When i debug “progress.nextSibling(page.path).url” it results null.
Seems like the nextSibling cant be found… Maybe “progress” is having some problem with location.

Any suggestions?

For me it worked after tagging the pages with the same taxonomy:

taxonomy:
    category:
        - docs

For me it worked after tagging the pages with the same taxonomy:
taxonomy:
category:
- docs

Thanks, it works now :slight_smile: