[FIX] website_blog: correctly create URL to access blog post

closes odoo/odoo#38986

X-original-commit: 534e5fbc4782a23162ce69d93a640fdd5dd99f9b
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
This commit is contained in:
Yenthe666
2019-10-17 18:38:12 +00:00
committed by fw-bot
parent 3a0acf329b
commit 7ee342ee0e
@@ -586,7 +586,7 @@ list of filtered posts (by date or tag).
<template id="blog_post_template_new_post">
<p>A new post <t t-esc="post.name" /> has been published on the <t t-esc="object.name" /> blog. Click here to access the blog :</p>
<p style="margin-left: 30px; margin-top: 10 px; margin-bottom: 10px;">
<a href="/blog/#{slug(object)}/post/#{slug(post)}"
<a t-attf-href="/blog/#{slug(object)}/post/#{slug(post)}"
style="padding: 5px 10px; font-size: 12px; line-height: 18px; color: #FFFFFF; border-color:#875A7B; text-decoration: none; display: inline-block; margin-bottom: 0px; font-weight: 400; text-align: center; vertical-align: middle; cursor: pointer;background-color: #875A7B; border: 1px solid #875A7B; border-radius:3px">
Access post
</a>