[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:
@@ -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">×</a>
|
||||
<a t-att-href="url_for('/forum') + '/' + slug(forum) + '?' + keep_query( 'search', 'sorting', 'filters', 'my')" class="btn py-1">×</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">
|
||||
|
||||
Reference in New Issue
Block a user