Skip to content

Wrong fragment is matched if data-m-page attribute values begin with the same text #201

@TomJLynch

Description

@TomJLynch

I set data-m-autoload to false for a section that required custom code. The load handler would not run for this section. It turns out another load handler was matching the section, which ran and did nothing because it was for the wrong page. Example: I have two sections. Their data-m-page attributes are "ActivityList" and "SomethingActivityList." I was trying to load SomethingActivityList, but I found in the Check method in routing.ts that ActivityList was getting matched instead. After changing SomethingActivityList to SomethingActivitiesList, it correctly matched the section I wanted to load.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions