Problem/Motivation
My team and I have recently updated our project to Drupal 8.9.10. Since then, the Redirect module does not display the View for the redirections correctly: it will simply show the Edit button.
I attached a screenshot below.
The view can be restored by reimporting the single configuration file for the View (the one that, in the module, is under the folder config/install). However, during the deploy in any environment, the module is reinstalled from scratch, and the issue represents itself.
This make us get to the conclusion that the issue must be within the installation process of the module.
Steps to reproduce
1. Make sure you have Drupal 8.9.10
2. Install the module
3. Goto Config/Search and Metadata/Url Redirects
4. Add a new redirection and save it
5. Observe the issue (it should be just like the screenshot I posted).
Proposed resolution
Review the installation process.
Remaining tasks
All
User interface changes
None
API changes
None
Data model changes
None
| Comment | File | Size | Author |
|---|---|---|---|
| view_issue.png | 73.22 KB | Steppico |
Comments
Comment #2
Steppico commentedComment #3
nejcramsak commentedHi, i tried replicating the problem, i tried with 8.x-1.6 and dev versions but for me both were working fine. Could there be anything else that could cause the problem?
Comment #4
mark.bishop@mobas.com commentedThis is also a problem for me. It's only showing the right-hand 'Operations' column, the other columns (including the header/name) are missing. The site is Drupal 8.9.13. Another site which is also on 8.9.13, is not having this issue.
Edit: Uninstalling and reinstalling the module resolved for me (though would be a pain with a lot of redirects).
Comment #5
lincoln-batsirayi commentedI was also getting this issue and it turns out that I'd forgotten to export the 'views.view.redirect.yml` and `system.action.redirect_delete_action.yml` files. So uninstalling, reinstalling and exporting the config generated those files and it started working as expected.
Comment #6
thhafner commentedWe are also experiencing this problem. copying the config files from the
redirect/config/install/directory to ourconfig/defaultdirectory solved the issue without needing to uninstall/reinstall the module. This is in Drupal 9.2.xComment #7
jaime@gingerrobot.com commentedHi! Thanks so much #6.
As far as I can tell we must have installed redirect before we installed the views modules so the optional views.view.redirect.yml isn't added.
A work around is to put the file from the optional directory into your config/sync directory. Ideally the update module should recheck optional directories and if views is now installed it should add the new components. Maybe this is part of what this ticket was talking about.
https://www.drupal.org/project/redirect/issues/2716883
Comment #8
jaime@gingerrobot.com commentedUpdate: I did a fresh install of Drupal 9 with the latest 8.x-1.8 and again with 8.x-1.x and the code longer makes views optional. There is currently no code to fix this issue on.