Conference URLs now use slugs instead of integer id

This commit is contained in:
prodriguez committed 2024-07-28 01:31:09 -04:00
1 parent e3bffbc418
commit 31f65e2489
8 files changed
+125 -5

No files matched your search

+1 -1
View File
@@ -16,7 +16,7 @@
<h1><a href="{{ path('homepage') }}">Guestbook</a></h1>
<ul>
{%for conference in conferences %}
<li><a href="{{ path('conference', { id: conference.id }) }}">{{ conference }}</a></li>
<li><a href="{{ path('conference', { slug: conference.slug }) }}">{{ conference }}</a></li>
{% endfor %}
</ul>
<hr/>
+1 -1
View File
@@ -8,7 +8,7 @@
{% for conference in conferences %}
<h4>{{ conference }}</h4>
<p>
<a href="{{ path('conference', { id: conference.id }) }}">View</a>
<a href="{{ path('conference', { slug: conference.slug }) }}">View</a>
</p>
{% endfor %}
{% endblock %}
+2 -2
View File
@@ -22,10 +22,10 @@
{% endfor %}
{% if previous >= 0 %}
<a href="{{ path('conference', { id: conference.id, offset: previous }) }}">Previous</a>
<a href="{{ path('conference', { slug: conference.slug, offset: previous }) }}">Previous</a>
{% endif %}
{% if next < comments|length %}
<a href="{{ path('conference', { id: conference.id, offset: next }) }}">Next</a>
<a href="{{ path('conference', { slug: conference.slug, offset: next }) }}">Next</a>
{% endif %}
{% else %}
<div>No comments have been posted yet for this conference.</div>