Uploaded image for project: 'Magnolia Standard Templating Kit (closed)'
  1. Magnolia Standard Templating Kit (closed)
  2. MGNLSTK-974

SearchResultModel is not Channel-aware

XMLWordPrintable

      Hi,

      Currently, it does not appear that info.magnolia.module.templatingkit.search.SearchResultModel is channel-aware. Therefore, if a particular page is set to exclude a particular output channel (i.e. smartphone), the excluded page will still show up in search results. Additionally, clicking the link will return a 404 error.

      Steps to Reproduce:

      1. Log into the demoauthor site as superuser
      2. Navigate to website/demo-project/news-events and click Open Page
      3. Click on the Properties button to open up the Page Properties dialog
      4. Click on the Output Channels tab, then check the Desktop checkbox to exclude the page from the Desktop channel
      5. Click the Save button
      6. Browse to the demo-projects Home page, then click the Preview button, to preview the site in Desktop mode
      7. Enter news and events in the search field, then click SEARCH
      8. On the Search Results page, note that the News and Events page is displayed in the results even though the page has been excluded from the desktop channel (see attached screenshot)
      9. Click on the News and Events link in the Search Results, note that a 404 Error is returned

      Please let me know if you have any questions.

      Cheers,
      Matt

        Acceptance criteria

              Unassigned Unassigned
              mderting Matt Dertinger
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: