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
Activity
requested review from @fjgarlin
- Resolved by Fran Garcia-Linares
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 need to have this so we can check the migrated data, otherwise it's a bit of a mission for us to check this. This permission is only given toadministrators
, which we only have 10 users in our system.Maybe we could do a different more-specific permission that we can turn on/off if we need to do these checks (as we are admins, we can give ourselves that permission), but I would still like to keep a backdoor for us to see things in the new system.
- Resolved by Fran Garcia-Linares
- Resolved by Fran Garcia-Linares
added 1 commit
- 689db214 - Show a message to admins viewing a non-available content type
- Resolved by Fran Garcia-Linares