[FIX] website_forum: don't use trailing / in url_for

Since PR https://github.com/odoo/odoo/pull/106109, url_for remove the
trailing / so we need to handle this case from another way

closes odoo/odoo#125598

X-original-commit: 1d04e56013e53320da4eda5335e06a69f2c479e9
Signed-off-by: Stéphane Debauche (std) <std@odoo.com>
Signed-off-by: Jérémy Kersten <jke@odoo.com>
This commit is contained in:
Jeremy Kersten
2023-06-19 16:40:15 +02:00
parent 832c271197
commit 5746f4eccc
2 changed files with 2 additions and 2 deletions
@@ -27,7 +27,7 @@
<span class="fa fa-tag text-muted me-1"/>
<span t-esc="tag.name"/>
</div>
<a t-att-href="url_for('/forum/') + slug(forum) + '?' + keep_query( 'search', 'sorting', 'filters', 'my')" class="btn py-1">&#215;</a>
<a t-att-href="url_for('/forum') + '/' + slug(forum) + '?' + keep_query( 'search', 'sorting', 'filters', 'my')" class="btn py-1">&#215;</a>
</span>
</div>
<div t-if="uid and request.env.user.forum_waiting_posts_count"
@@ -219,7 +219,7 @@
</div>
</a>
<t t-set="location" t-value="url_for('/forum/') + slug(forum) + ( ('/tag/' + slug(tag) + '/questions?') if tag else '?' )"/>
<t t-set="location" t-value="url_for('/forum') + '/' + slug(forum) + ( ('/tag/' + slug(tag) + '/questions?') if tag else '?' )"/>
<!-- My Posts -->
<span t-if="my == 'mine'" class="nav-link rounded-pill mb-2 active fw-bold">