Skip to content

closing Preview Mode causes an endless redirect loop #19471

Open
@shearer3000

Description

@shearer3000

Which Umbraco version are you using?

15.4.0

Bug summary

When using content 'Save and Preview' and then clicking the 'End' button seems to put the browser in an endless redirect loop between two Umbraco urls. Important: this issue only affects content that's never been published before.

Specifics

From Chrome dev tools, there are approx 800 requests between two Umbraco urls e.g.

Image

Image

Image

Steps to reproduce

  1. start with a clean install of Umbraco
  2. Set up two basic content trees (multisite structure with domain/hostname entered for each)
  3. Set up a "Not Found" content type and pages in each content tree to represent a 404 not found page.
  4. Add the NotFoundHandler as per https://docs.umbraco.com/umbraco-cms/reference/routing/request-pipeline/icontentfinder#notfoundhandlers
  5. Create a new content page (never been published)
  6. 'save and preview' to open the Preview Mode, and then click the End button (with browser network tab open to observe traffic)

reference for step 2:
Image
Image

Expected result / actual result

Expected: the End button closes the Preview mode tab
Actual: Umbraco puts the browser in a loop before eventually landing on the Not Found page


This item has been added to our backlog AB#54097

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions