The block/add path is not redirecting

Created on 15 July 2024, 7 months ago
Updated 16 July 2024, 7 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 20 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
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia amanbtr72

    amanmansuri72 โ†’ made their first commit to this issueโ€™s fork.

  • Status changed to Needs review 7 months ago
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia amanbtr72

    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
    7 months ago
    Total: 1290s
    #225720
  • Status changed to Needs work 7 months ago
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States smustgrave

    MR appears to have test failures

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