Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
User can use route:<nolink>
to create no-link links (see #2693725: Add <nolink> to allow for non-link links ). However, D8 migration does not handle empty URI, and properly. They are skipped.
Proposed resolution
Add support for migrating empty URI, <nolink>
, <none>
into route:<nolink>
to create no-link links.
As <front>
is a special migration case, so should be these.
Remaining tasks
None.
User interface changes
None.
API changes
None.
Data model changes
None
Comment | File | Size | Author |
---|---|---|---|
#16 | 3110064-12.patch | 1.65 KB | benjifisher |
#13 | 3110064-13.patch | 1.65 KB | idebr |
#13 | 3110064-13-test-only.patch | 768 bytes | idebr |
Comments
Comment #2
ckngSee attached patch.
Comment #3
ckngComment #4
rutiolmaThis is a duplicate of #3067576
Also, this patch doesn't work for me but the one on the related issue does.
Comment #5
ckng#3067576: <nolink> menu items lost on migration is a patch for menu links, and it is for `link_uri` process plugin.
This patch is for `field_link` process plugin, to process link field, totally different thing.
Comment #6
mikelutzAgreed, this is a different and valid issue. We will need to write tests for this.
Comment #8
chandrashekhar_srijan CreditAttribution: chandrashekhar_srijan at Srijan | A Material+ Company for Drupal India Association commentedWorked on the test cases.
Comment #10
Kumar Kundan CreditAttribution: Kumar Kundan as a volunteer and at Srijan | A Material+ Company for Drupal India Association commentedComment #11
idebr CreditAttribution: idebr at iO commentedTest failure is unrelated:
should be a short array syntax:
Comment #12
Vidushi Mehta CreditAttribution: Vidushi Mehta at gai Technologies Pvt Ltd commentedAdded a patch that pointed #11.
Comment #13
idebr CreditAttribution: idebr at iO commentedThe patch in #12 works as expected.
Added a test-only patch to indicate the changed behaviour. The actual patch is identical to #12.
Comment #16
benjifisherI am re-uploading the patch from #12, since the testbot automatically retests RTBC patches every two days ... and it has been re-testing the test-only patch.
I have not reviewed the patch myself.
Comment #18
mikelutzUnrelated test failure.
Comment #21
catchCommitted/pushed to 9.1.x and cherry-picked back to 8.9.x, thanks!
Comment #23
Wim LeersThe fact that migrating
<nolink>
is now supported means that 50% of the functionality of https://git.drupalcode.org/project/special_menu_items/-/blob/7.x-2.x/spe... is now migrated from D7 to D8|9!If we'd also add support for
<separator>
, that could be 100%, and then we could updatecore/modules/migrate_drupal/migrations/state/migrate_drupal.migrate_drupal.yml
accordingly!