NCIOCPL / cgov-digital-platform

The Cancer.gov Digital Communications Platform
GNU General Public License v2.0
11 stars 33 forks source link

403 pages on CMS Site Should Redirect to the Login #2311

Open adriancofie opened 5 years ago

adriancofie commented 5 years ago

Bug Description

When a user goes to a page that has not been published or has been archived and the user is not logged in, then the user shall be redirected to the login page.

This ticket is to either point the 403 message to the existing 404 (the logic for which is almost in place) or at the very least come up with another UI friendly remedy.

403 Page

Screen Shot 2019-08-07 at 12 09 41 PM

Defaulting to built-in Drupal 403/404

Screen Shot 2019-08-07 at 12 09 55 PM

Overriding the default 404 but not the default 403

Screen Shot 2019-08-07 at 12 10 33 PM
bkline commented 4 years ago

One of the undesirable effects of the current behavior is a discrepancy between the title, which claims that the page does not exist, and the body which says that the page does exist, but the user isn't allowed to see it.

image

blairlearn commented 9 months ago

Verified 12-7-2023

In an incognito window

  1. Navigate to (CMS page) https://www-cms.cancer.gov/research/key-initiatives/moonshot-cancer-initiative/blue-ribbon-panel/archive
  2. The "You are not authorized to access this page" message is displayed.
  3. Navigate to (front end pag) https://www.cancer.gov/research/key-initiatives/moonshot-cancer-initiative/blue-ribbon-panel/archive
  4. The friendly 404 error page appears.