In-Portal has 2 types of pages:
- Virtual - multiple pages share same template file on disk, which called "design template". Content comes from page content blocks plus any other used unit.
- Physical - only 1 page per template file on disk. Content comes from template file itself plus any other used unit.
Template can use or ignore a category, that is given into url (e.g. /path/to/category/path/to/template.html). However fact, that template can shows identical information no matter what category is given in url breaks Google Seo rule (single page can't have 2 urls to it).
I'm proposing to add <SECTION_AGNOSTIC/> text to page meta comment, which usually looks like this:
<!--## <NAME>Page Name</NAME> <DESC>Page Description</DESC> <SECTION>Path||To||Section</SECTION> ##-->
With proposed change applies any attempts to visit url with both category & template present would lead to 404 page, but only if found template is marked as "section agnostic".
section_agnostic_templates_feat.patch
Related Discussions
- [cms] Greedy template detection durning url parsing [5.2.2-B1]
- Unable to register because of '404 Page Not Found' page on 5.2.1-B2
Related Tasks
Error rendering macro 'jira' : Unable to locate Jira server for this macro. It may be due to Application Link configuration.