Skip to content

Refresh routePath for page_tree_route based Article #667

@Olivier127

Description

@Olivier127
Q A
Bug? yes
New Feature? no
SuluArticleBundle Version 2.5.3
Sulu Version 2.5.13

Actual Behavior

The "refresh URL" button to update the slug of an article using a routePath based on page_tree_route calls an unknown route.

Expected Behavior

A correctly updated slug.

Steps to Reproduce

Create an article with the
page_tree.txt

put "page test" inside title section.
clic on the slug and put "page-test" inside
clic on refresh url

le browser call http://localhost/admin/undefined
with this payload

{
    "parts": {
        "title": "page test"
    },
    "resourceKey": "articles",
    "locale": "fr",
    "id": null,
    "entityClass": null,
    "routeSchema": "/{implode('-', object)}"
}

Possible Solutions

This page should have the same behavior as an article using the routePath of type route and calling the URL admin/api/routes?action=generate with the correct parameters.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions