Add setting to enable redirects per bundle

Created on 28 November 2023, about 1 year ago
Updated 5 January 2024, 12 months ago

It would be great to add a new checkbox on the content edit form (/admin/structure/types/manage/{BUNDLE}) to enable/disable the redirect section per bundle.

Another possible solution is to create a config form to select content bundles.

Feature request
Status

Fixed

Version

2.0

Component

Code

Created by

🇺🇦Ukraine AstonVictor

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @AstonVictor
  • Merge request !23404620 - Create config form → (Merged) created by AstonVictor
  • Issue was unassigned.
  • Status changed to Needs review about 1 year ago
  • 🇺🇦Ukraine AstonVictor

    Prepared a new MR.

    Created a new config form to enable redirects per bundle. The URL of the config form is /admin/config/search/bundle-redirect.
    Also, created a menu link to the config form, added schema config for settings and implemented hook_update() to enable the config for all bundles in order not to break the current state.

  • Status changed to Closed: won't fix about 1 year ago
  • 🇮🇳India Akhil Babu Chengannur

    I have tested this. The patch functions correctly, but it does not enable/disable the 'URL Redirects' section on the node edit page. This is because the 'redirect' module, which is a dependency of this module, also adds the same 'URL Redirects' section through its own form alter.
    https://git.drupalcode.org/project/redirect/-/blob/8.x-1.x/redirect.modu...
    I believe this should be incorporated as a feature in the 'redirect' module and not in this module.

  • Status changed to Needs review about 1 year ago
  • 🇺🇦Ukraine AstonVictor

    Hi @Akhil Babu,

    I guess you are not familiar with the module. It adds an additional section on the node edit page.
    So, there are two redirect sections: one from the redirect module (add a redirect from the node to any other pages) and another from the current module (add a redirect from other pages to the node).

    The task is to add access control to the section from the current module.

  • Status changed to RTBC 12 months ago
  • 🇮🇳India Anjali Mehta

    Hi @Aston Victor,

    I have reviewed the changes, and they look great. The addition of the new section with redirect option on node edit page is successful. marking this as RTBC.

    Thank you!

  • Status changed to Fixed 12 months ago
  • 🇺🇦Ukraine AstonVictor

    thanks for the review.

    The MR is merged and changes will be added in the next release.

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024