diff --git a/config/packages/sulu_article.yaml b/config/packages/sulu_article.yaml index 5f7a54cf..aacc91ff 100644 --- a/config/packages/sulu_article.yaml +++ b/config/packages/sulu_article.yaml @@ -14,9 +14,4 @@ sulu_route: Sulu\Bundle\ArticleBundle\Document\ArticleDocument: generator: 'schema' options: - route_schema: '/blog/{object.getTitle()}' - Sulu\Bundle\ArticleBundle\Document\ArticlePageDocument: - generator: 'article_page' - options: - route_schema: '/{translator.trans("page")}-{object.getPageNumber()}' - parent: '{object.getParent().getRoutePath()}' + route_schema: '/blog/{is_array(object) ? implode("-", object) : object.getTitle()}' diff --git a/config/templates/articles/blog.xml b/config/templates/articles/blog.xml index 50cf5564..1dc2e728 100644 --- a/config/templates/articles/blog.xml +++ b/config/templates/articles/blog.xml @@ -27,6 +27,8 @@ + +