Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pattern mapping does not work on project #10085

Closed
poi33 opened this issue Mar 15, 2023 · 0 comments
Closed

Pattern mapping does not work on project #10085

poi33 opened this issue Mar 15, 2023 · 0 comments
Assignees
Labels
Milestone

Comments

@poi33
Copy link

poi33 commented Mar 15, 2023

XP version: 7.12.0

When setting a pattern mapping in site.xml having the app installed on the project does not trigger the controller.
The url used is: localhost:8080/site/my-first-project/draft/api

<site>
    <mappings>
        <mapping controller="/mappings/api.js">
            <pattern>/api</pattern>
        </mapping>
    </mappings>
</site>

Creating a site and installing the app with the same mapping does trigger the controller
The url used is: localhost:8080/site/my-first-project/draft/test2/api

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants