JSS Layout Service and Personalization

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












When using the JSS Layout Service with my Angular application, I notice that if I add personalized content to my component, the response (and display) I get back from the Layout service depends on a certain flag. [pageEditing: true, site: name: "portal.local", pageState: "normal", language: "en"]



If this value is false, my personalization seems to work. If true, it shows some generic HTML content (code). I notice I can control this flag by logging out of the Sitecore instance.



Is there a programmatic way to always request the pageEditing=false version from my app? I understand that the experience editor needs to show the content so it needs to handle both. Thank you.










share|improve this question







New contributor




Toby Nunn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.























    up vote
    1
    down vote

    favorite












    When using the JSS Layout Service with my Angular application, I notice that if I add personalized content to my component, the response (and display) I get back from the Layout service depends on a certain flag. [pageEditing: true, site: name: "portal.local", pageState: "normal", language: "en"]



    If this value is false, my personalization seems to work. If true, it shows some generic HTML content (code). I notice I can control this flag by logging out of the Sitecore instance.



    Is there a programmatic way to always request the pageEditing=false version from my app? I understand that the experience editor needs to show the content so it needs to handle both. Thank you.










    share|improve this question







    New contributor




    Toby Nunn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.





















      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      When using the JSS Layout Service with my Angular application, I notice that if I add personalized content to my component, the response (and display) I get back from the Layout service depends on a certain flag. [pageEditing: true, site: name: "portal.local", pageState: "normal", language: "en"]



      If this value is false, my personalization seems to work. If true, it shows some generic HTML content (code). I notice I can control this flag by logging out of the Sitecore instance.



      Is there a programmatic way to always request the pageEditing=false version from my app? I understand that the experience editor needs to show the content so it needs to handle both. Thank you.










      share|improve this question







      New contributor




      Toby Nunn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      When using the JSS Layout Service with my Angular application, I notice that if I add personalized content to my component, the response (and display) I get back from the Layout service depends on a certain flag. [pageEditing: true, site: name: "portal.local", pageState: "normal", language: "en"]



      If this value is false, my personalization seems to work. If true, it shows some generic HTML content (code). I notice I can control this flag by logging out of the Sitecore instance.



      Is there a programmatic way to always request the pageEditing=false version from my app? I understand that the experience editor needs to show the content so it needs to handle both. Thank you.







      personalization jss






      share|improve this question







      New contributor




      Toby Nunn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      Toby Nunn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      Toby Nunn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 4 hours ago









      Toby Nunn

      61




      61




      New contributor




      Toby Nunn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Toby Nunn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Toby Nunn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          3
          down vote













          This behavior is due to being logged into Sitecore and browsing your JSS app in the same browser instance (even if they're separate tabs they share cookies).



          I would suggest browsing to your app in an incognito window or separate browser.



          Related question: Layout API returning strange code into placeholder






          share|improve this answer






















          • Perfect...company policies do not allow incognito windows but a separate Edge browser did the trick. Thanks for the extremely quick response Adam!
            – Toby Nunn
            4 hours ago











          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "664"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );






          Toby Nunn is a new contributor. Be nice, and check out our Code of Conduct.









           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsitecore.stackexchange.com%2fquestions%2f14575%2fjss-layout-service-and-personalization%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          3
          down vote













          This behavior is due to being logged into Sitecore and browsing your JSS app in the same browser instance (even if they're separate tabs they share cookies).



          I would suggest browsing to your app in an incognito window or separate browser.



          Related question: Layout API returning strange code into placeholder






          share|improve this answer






















          • Perfect...company policies do not allow incognito windows but a separate Edge browser did the trick. Thanks for the extremely quick response Adam!
            – Toby Nunn
            4 hours ago















          up vote
          3
          down vote













          This behavior is due to being logged into Sitecore and browsing your JSS app in the same browser instance (even if they're separate tabs they share cookies).



          I would suggest browsing to your app in an incognito window or separate browser.



          Related question: Layout API returning strange code into placeholder






          share|improve this answer






















          • Perfect...company policies do not allow incognito windows but a separate Edge browser did the trick. Thanks for the extremely quick response Adam!
            – Toby Nunn
            4 hours ago













          up vote
          3
          down vote










          up vote
          3
          down vote









          This behavior is due to being logged into Sitecore and browsing your JSS app in the same browser instance (even if they're separate tabs they share cookies).



          I would suggest browsing to your app in an incognito window or separate browser.



          Related question: Layout API returning strange code into placeholder






          share|improve this answer














          This behavior is due to being logged into Sitecore and browsing your JSS app in the same browser instance (even if they're separate tabs they share cookies).



          I would suggest browsing to your app in an incognito window or separate browser.



          Related question: Layout API returning strange code into placeholder







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited 3 hours ago

























          answered 4 hours ago









          Adam Weber

          76628




          76628











          • Perfect...company policies do not allow incognito windows but a separate Edge browser did the trick. Thanks for the extremely quick response Adam!
            – Toby Nunn
            4 hours ago

















          • Perfect...company policies do not allow incognito windows but a separate Edge browser did the trick. Thanks for the extremely quick response Adam!
            – Toby Nunn
            4 hours ago
















          Perfect...company policies do not allow incognito windows but a separate Edge browser did the trick. Thanks for the extremely quick response Adam!
          – Toby Nunn
          4 hours ago





          Perfect...company policies do not allow incognito windows but a separate Edge browser did the trick. Thanks for the extremely quick response Adam!
          – Toby Nunn
          4 hours ago











          Toby Nunn is a new contributor. Be nice, and check out our Code of Conduct.









           

          draft saved


          draft discarded


















          Toby Nunn is a new contributor. Be nice, and check out our Code of Conduct.












          Toby Nunn is a new contributor. Be nice, and check out our Code of Conduct.











          Toby Nunn is a new contributor. Be nice, and check out our Code of Conduct.













           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsitecore.stackexchange.com%2fquestions%2f14575%2fjss-layout-service-and-personalization%23new-answer', 'question_page');

          );

          Post as a guest













































































          Comments

          Popular posts from this blog

          Long meetings (6-7 hours a day): Being “babysat” by supervisor

          Is the Concept of Multiple Fantasy Races Scientifically Flawed? [closed]

          Confectionery