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

When logo is not defined on a page, the page is requested from the server twice

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • 1.1.2
    • None
    • None

    Description

      From the user list:

      I don't know.
      These are the steps I made:

      1) Duplicated stkArticle
      2) Renamed as projectSearchResult
      3) Duplicated paragraph stkSearchResult (in feature catalog)
      4) Renamed as projectSearchResult
      5) Changed paragraph modelClass to <package>.ProjectSearchResultModel
      (the one you see in my original message
      6) Instantiated a new page and assigned projectSearchResult tpl
      7) Instantiated a new paragraph in mainArea of the page
      8) called the page with ?queryStr=myText parameter at the end

      9) Got 2 request!

      I've replicated this also on demo.magnolia-cms.com, doing the following
      steps:

      1) create a new "untitled" page
      2) calling it (so using POP theme..)

      The second request seems to happen onDomReady event (jQuery / DOM
      related..). Maybe a bug on STK POP Theme?

      Just to be complete:

      HTH, Matteo

      I can confirm that this really happens. The simplest way to reproduce:

      • create new home page
      • check the http headers when opening the page (page is requested twice)
      • try as many times you want, the page will always be retrieved twice
      • open the "Page info" dialog, setup the logo and save the dialog
      • page is no longer requested twice, but only once

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              pbaerfuss Philipp Bärfuss
              had Jan Haderka
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: