Skip to content

set homepage via node id#149

Merged
finnlewis merged 3 commits into3.xfrom
fix/148-set-homepage-via-node-id
Nov 4, 2025
Merged

set homepage via node id#149
finnlewis merged 3 commits into3.xfrom
fix/148-set-homepage-via-node-id

Conversation

@markconroy
Copy link
Member

Closes #148

What does this change?

Sets homepage via node id, so it doesn't redirect back to the alias.

How to test

Install LGD with this module, check when you go to homepage you see localgov.ddev.site/ instead of localgov.ddev.site/localgov-drupal-demo

How can we measure success?

No more redirects from homepage to node alias.

Have we considered potential risks?

This presumes that the demo content module is being installed on a fresh site with no other content. If there is another node created /node/97 will not be the correct node id.


Thanks to Big Blue Door for sponsoring my time to work on this.

Copy link
Contributor

@andybroomfield andybroomfield left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested this by doing a vanilla install, then generating several pages so it would be out of sequence, then enabling this module. Verified home page is set correctly. Checked by repeating process with a different number of nodes and verified the node number changed but home page still set up correctly.

@finnlewis finnlewis merged commit 6567b5b into 3.x Nov 4, 2025
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Front page / home page redirects to url alias of node

3 participants