- Issue created by @pasqualle
- ๐ฎ๐ณIndia amanbtr72
amanmansuri72 โ made their first commit to this issueโs fork.
- Merge request !8794Redirect to available block type add page if only 1 available โ (Open) created by amanbtr72
- Status changed to Needs review
over 1 year ago 3:30pm 16 July 2024 - ๐ฎ๐ณ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
- Status changed to Needs work
over 1 year ago 7:19pm 16 July 2024 - First commit to issue fork.
- ๐บ๐ธUnited States dcam
I added a dedicated test case. I also fixed the other test failures. The cause of those failures was a
destinationquery parameter on the "Add content block" local action link. It resulted in a redirect loop when trying to use the action link. I expected to reply here saying "This seems like a feature request to me." Except then this business with thedestination happenedand it does seem like a bit of a bug. Thedestinationis used for forms. So it's no wonder that it behaved strangely when combined with another redirect on an ordinary page.So I think it's ok to simply remove the
destination. The existing tests agree with me as they're all still passing. Or at least there's no coverage for this anomaly. It's worth noting that thenode/addaction link (which this issue is trying to emulate) does not have adestination. - ๐บ๐ธUnited States smustgrave
Small nitpicky comment
But NW for the issue summary.
Also not 100% I see the issue?
- ๐บ๐ธUnited States dcam
Small nitpicky comment
Applied suggestion
But NW for the issue summary.
Updated.
Also not 100% I see the issue?
Like I said in my last comment, this is a feature request. Nothing is broken. I'd call it a UX improvement.
That said, I did uncover what seems like a minor bug while fixing the tests. There's an unnecessary
destinationparameter on the action link, but I'm reclassifying the issue as a Feature Request anyway so it won't cause more confusion. - ๐บ๐ธUnited States dcam
I realized that
$requestproperty isn't even used. Maybe it was from early draft of the MR or something. -
alexpott โ
committed 176346e7 on 11.2.x
Issue #3461316 by amanbtr72, dcam, pasqualle, smustgrave, acbramley:...
-
alexpott โ
committed 176346e7 on 11.2.x
-
alexpott โ
committed ed28d46c on 11.x
Issue #3461316 by amanbtr72, dcam, pasqualle, smustgrave, acbramley:...
-
alexpott โ
committed ed28d46c on 11.x
- ๐ฌ๐งUnited Kingdom alexpott ๐ช๐บ๐
As a minor feature request committed to 11.2.x so it will be part of 11.2.0 even though we are in alpha. This is very low disruption.
Committed and pushed ed28d46cb09 to 11.x and 176346e770b to 11.2.x. Thanks!
Automatically closed - issue fixed for 2 weeks with no activity.