I believe this should work.
{% set allEntriesByWeek = allEntries|group('postDate|date('Y-W')') %}
{% for week, entry in allEntriesByWeek %}
<li><a href="events/{{ week|replace('-','/') }}">{{ week }}</a></li>
{% endfor %}
I believe this should work.
{% set allEntriesByWeek = allEntries|group('postDate|date('Y-W')') %}
{% for week, entry in allEntriesByWeek %}
<li><a href="events/{{ week|replace('-','/') }}">{{ week }}</a></li>
{% endfor %}