Closed jholze closed 8 years ago
What URL did you try to set?
i was not done ;) - i tried the /blog because it is the best url you can have (from seo perspective), but i think the issue is the structure of the blog model, because it is possible to have different blogs like blog, news or another. The odoo normal behavior is like /blog/blog-1 and if we have second blog with different posts like /blog/news-1 for example.
I was working wit this issues. I'm not so sure about the structure. We were set SEO URL for blog in the way: (1) /[blog-seo-url] instead of (2) /blog/[blog-seo-url]
I understand by your comments that we prefer the second option. If you have only one blog probably is better to use /blog directly, otherwise if you have more than one blog it would be useful to have url like /blog/news and /blog/more. Also in issue #14 @fczaja proposed to use /[blog-seo-url]/[tag-seo-url] for tags instead of /[blog-seo-url]/tag/[tag-seo-url].
What do you think?
@kaerdsar i will discuss it with @rruebner on monday. He is one day off and i think he is still sleeping :)
@rruebner @kaerdsar in the case we have two or more blog what it the problem to have urls like /blog/ and slash /news/ together ?
@jholze There is no problem with this case. If this issue is solved we can use /blog and /news for two blog.blog.
The url '/blog' is already used in Odoo. If we use it for a blog then overwrite the view 'website_blog.latest_blogs' where you have a view of all post per blogs. I think we must ensure the url 'blog' can't be used in the seo_url via a validation.
@jholze Is the solution that we exclude "blog" as possible SEO url fine for you?
@kaerdsar Opening "/blog" doesn't throw the error. Still to do:
@kaerdsar After a short meeting with robert we decided the following
An example
current state
if you have two blog.blog like /news & /seo-news the urls of the blog posts are like /blog/news/post/the-future-of-emails-1 - and same for the other blog.blog but the url should be like /blog/the-future-of-emails.
new state
if someone entered a blog.blog page like /blog/news he will see all related blog posts which are given for this blog.blog item but if he clicks on a blog post, the url should not have the blog.blog SEO url value within the url.
We also need to update the way we have implemented the url handling for the blog.blog. the current way is like /news & /seo-news but should be like the odoo way /blog/news /blog/seo-news like a subcategory.
Added modifications to update blog seo urls. Still missing javascript validations. We didn't talk about tags, for tags I used this url: /blog/
The pull requested is updated with the new commits.
steps to reproduce
traceback