Skip to content
Snippets Groups Projects

Redirect to www.drupal.org when a node is found, but type is not yet allowed

For /browse/recipes, the nodes should still be viewed on www.drupal.org since they are not ready to really move over yet. I haven’t done anything special in the View to link to the legacy site. Instead, this change redirects to the same node on www.drupal.org when the content type is not ready. This way when there's any relative link in migrated content, there’s some capability to route to the right site without updating the content; and we're not hard-coding the sites into Views or elsewhere.

This also removes the bypass node access ability. I think for production, less differences in what admins can see vs. other user accounts is always good. We could open up a "preview" phase where a separate allowlist of content types is viewable by admins with bypass node access. I'm guessing the bypass node access exception might have been added so we can preview how something like credit records are migrating.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Fran Garcia-Linares
  • Neil Drumm added 1 commit

    added 1 commit

    Compare with previous version

  • Neil Drumm left review comments

    left review comments

  • Neil Drumm added 1 commit

    added 1 commit

    • 689db214 - Show a message to admins viewing a non-available content type

    Compare with previous version

  • Neil Drumm added 1 commit

    added 1 commit

    Compare with previous version

  • Fran Garcia-Linares resolved all threads

    resolved all threads

  • Fran Garcia-Linares resolved all threads

    resolved all threads

  • added 1 commit

    • fd2a3912 - Apply 1 suggestion(s) to 1 file(s)

    Compare with previous version

  • merged

  • Please register or sign in to reply
    Loading