Download & Extend

URL path on front page should bre redirected to /

Project:Global Redirect
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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

#1

The canonical tag is wrong too

#2

There's also an issue for this for d7: #1018684: Redirect example.com/[frontpage] to example.com

#3

Version:6.x-1.2» 6.x-1.x-dev
Status:active» needs review

I 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?

#4

I 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").

#5

Status:needs review» fixed

@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.

#6

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.