Problem/Motivation

On a fresh Varbase 10.1.x or 10.0.x site the path alias /node exists twice: once for the Homepage (node 2) and once for the Contact Us page (node 1).

modules/varbase_default_content/content/path_alias/33086ffd-e0c1-45c3-b5c0-75969873791c.yml creates the alias /node for /node/1. It dates from when node 1 was the Homepage. Since #3446300 the Contact Us page is the only node in the main default content folder, so it is created first and gets nid 1, and the Homepage, imported later from varbase_content/*_homepage, gets nid 2 with its own /node alias. The stray alias now points /node at the Contact Us page.

  • The front page ends up right only because the profile picks the last /node alias. The loop that is meant to delete the others (if (!(end($alias_ids))) in varbase_default_content_install() and varbase_after_install_finished() in the profile) never deletes anything, since end() returns an alias id.
  • Affects 10.0.x and 10.1.x. 9.1.x has no Contact Us node in that folder, and 9.2.x has no stray alias.

Steps to reproduce

  1. Install Varbase 10.1.x-dev with the default content.
  2. Open /admin/config/search/path?search=node.
  3. /node is listed twice, for /node/1 (Contact Us) and /node/2 (Homepage).

Proposed resolution

Remove the stray path_alias default content file. Every Homepage variant already carries its own /node alias, which the installer uses to set the front page.

AI-Generated: Yes (Claude Code was used to trace the duplicate alias through the default content and the install code.)

Remaining tasks

  • ✅ File an issue
  • ❌ Addition/Change/Update/Fix
  • ❌ Testing to ensure no regression
  • ➖ Automated unit/functional testing coverage
  • ➖ Developer Documentation support
  • ➖ User Guide Documentation support
  • ➖ UX/UI designer responsibilities
  • ➖ Accessibility and Readability
  • ❌ Reviewed by a human
  • ❌ Code review by maintainers
  • ❌ Full testing and approval
  • ❌ Credit contributors
  • ❌ Review with the product owner
  • ❌ Update Release Notes
  • ❌ Release

User interface changes

  • N/A

API changes

  • N/A

Data model changes

  • N/A

Release notes snippet

  • N/A
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

rajab natshah created an issue.

  • rajab natshah committed 0153fdc0 on 10.1.x
    fix: #3639432 Remove the stray /node path alias that points at the...

  • rajab natshah committed 5729c6a5 on 10.0.x
    fix: #3639432 Remove the stray /node path alias that points at the...