Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Johan Dahlström 33 posts 146 karma points
    Jul 08, 2020 @ 16:33
    Johan Dahlström
    0

    Wiring up preview with a single page application

    I'm writing a single page application and would like to know how to get the preview mode working.

    By default, the preview requests seems to be targeted tobaseUrl/{contentId}.aspx?culture={culture}. Do I have any way to control this route?

    When fetching content, is it enough to use UmbracoContext.Content.GetById(true, id) and pass the umbraco cookies along with the request to get the user's preview version of the page?

Please Sign in or register to post replies

Write your reply to:

Draft