No apps block has no 'create' link

Created on 18 April 2023, about 1 year ago

Problem/Motivation

If you navigate to /admin/structure/views/view/applications and select the application view's page display and there are no applications displayed there is a block with machine name 'noappsblock' that is displayed. This is configured in the view under 'No Results Behaviour'.

The text in the block states, 'Click Create to create an application.' but there is no 'create' link. This problem was reported to me by an admin user who could see no way to create an application. There was no link to do it the menus in the portal nor any visible links. So they would have had to guess to add '/new' to the end of the '/applications' path to reach the application create form.

It would seem that the intention behind the block is to make the word 'create' a link to the path '/applications/new'.

Steps to reproduce

To test this you can add an arbitrary filter criteria to the view that will force it to return no applications. Then you will see the 'noappsblock' in the view preview.

Proposed resolution

In my case the fix was to use a custom block I had already created. I tried to do that by changing the machine name in the 'No Results Behaviour' of the view to the machine name of our custom block. But for some reason that just led to a blank white screen as output for the view. But that I may refer to in a separate issue.

To fix this issue with the IBM block, i suggest instead to make the word 'create' in the text of the noappsblock block into a link to the path '/applications/new'.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Closed: outdated

Component

User interface

Created by

πŸ‡¬πŸ‡§United Kingdom andrew.farquharson

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

Comments & Activities

Production build 0.69.0 2024