Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
If the node set as the site's front page has an URL alias (and it has to have one in some cases, like the one I face), then the front page exists both s http://example.com and http://example.com/alias. I would expect this to be tackled by the excellent Global Redirect, hence this feature request. Thanks!
Comments
Comment #1
amoutiers CreditAttribution: amoutiers commentedThe canonical tag is wrong too
Comment #2
jdleonardThere's also an issue for this for d7: #1018684: Redirect example.com/[frontpage] to example.com
Comment #3
nicholasThompsonI have added a feature in 6.x-dev which allows you to disable frontpage redirecting (which allows a node to exist on both and /node/123 (or /alias)). Is this the kind of thing you were looking for?
Comment #4
Vacilando CreditAttribution: Vacilando commentedI have tested that with "Frontpage Redirect Handler" enabled -- and it is rightfully enabled by default -- front page paths like "node/1" but also their aliases like "home" properly redirect to the site's root.
I however recommend a clearer (if longer) explanation under that checkbox; perhaps something like this:
If enabled, any request to the frontpage path will redirect to the site root. Whatever you set as the path to the front page at /admin/settings/site-information, e.g. "node" or "node/1", but also its alias (e.g. in case you have set "node/1" as your home page but that page also has an alias "home") -- all such cases will redirect to your root domain (e.g. "http://example.com").
Comment #5
nicholasThompson@Vacilando - committed. Cheers for the improved text. I didn't use it verbatum, but the essence is there. This was added to both D6 and D7.