Accessing links to deleted pages shows an error

Description

Steps to reproduce:

  1. Create a space with Versions

  2. Access a page in version 1 and copy an ID link to that page

  3. Delete version 1

  4. Access the link again

Expected result:
404 page displays

Actual result:
Stack trace displays

Workaround:
Purge the page from trash

Environment

None

Assignee

Unassigned

Reporter

Sync User [K15t]

Labels

None

Participants

None

QA Status

None

Deployment

None

Documentation Status

None

UI Concept

None

External Votes

None

Components

Fix versions

Configure