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

CommentFileSizeAuthor
view_issue.png73.22 KBSteppico

Comments

Steppico created an issue. See original summary.

Steppico’s picture

Version: 8.x-1.x-dev » 8.x-1.6
nejcramsak’s picture

Hi, 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?

mark.bishop@mobas.com’s picture

This 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).

lincoln-batsirayi’s picture

I 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.

thhafner’s picture

We are also experiencing this problem. copying the config files from the redirect/config/install/ directory to our config/default directory solved the issue without needing to uninstall/reinstall the module. This is in Drupal 9.2.x

jaime@gingerrobot.com’s picture

Status: Active » Reviewed & tested by the community

Hi! 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

jaime@gingerrobot.com’s picture

Status: Reviewed & tested by the community » Closed (outdated)

Update: 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.