The block/add path is not redirecting

Created on 15 July 2024, about 2 months ago
Updated 16 July 2024, about 2 months ago

Problem/Motivation

The block/add path should redirect when there is only 1 block type available. Similarly as node/add route works.

Steps to reproduce

1. Install standard profile.
2. Visit block/add
The page should redirect to block/add/basic

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Needs work

Version

11.0 🔥

Component
Block content 

Last updated 2 days ago

Created by

🇭🇺Hungary Pasqualle 🇭🇺 Budapest

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @Pasqualle
  • 🇳🇿New Zealand quietone New Zealand
  • First commit to issue fork.
  • Status changed to Needs review about 2 months ago
  • 🇮🇳India amanmansuri72

    I added redirection to the Available block type "Add Block Content" page.

    For Example:

    If the "Basic" block type is available in the block types list then the URL will look like "/block/add/basic"

    If the "Test" block type is available in the block types list then the URL will look like "/block/add/test"

    Kindly review

    Thanks

  • Pipeline finished with Failed
    about 2 months ago
    Total: 1290s
    #225720
  • Status changed to Needs work about 2 months ago
  • 🇺🇸United States smustgrave

    MR appears to have test failures

  • Pipeline finished with Failed
    about 2 months ago
    Total: 586s
    #226291
  • Pipeline finished with Failed
    about 2 months ago
    #226353
  • Pipeline finished with Failed
    about 2 months ago
    Total: 155s
    #226361
  • Pipeline finished with Failed
    about 2 months ago
    Total: 450s
    #226381
  • Pipeline finished with Failed
    about 2 months ago
    Total: 452s
    #226487
  • Pipeline finished with Failed
    about 2 months ago
    Total: 4172s
    #226564
Production build 0.71.5 2024