Skip to content

Using json by default (without url extension) results in 404 for articles #3755

@jaapromijn

Description

@jaapromijn
Q A
Bug? yes
New Feature? no
Sulu Version 1.6.14

Actual Behavior

When using json as request format by default, without using .json extensions, the RouteProvider cuts off the last character of the url.

Expected Behavior

The RouteProvider should check if the extension exists, or only remove the actual extension.

Steps to Reproduce

When you set the request format in your project:

$request->setRequestFormat('json');

And visit a URL that should be routed by the RouteProvider, the page is not found.

Metadata

Metadata

Assignees

No one assigned

    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