As stated above

Edit Site Information - Default front page

I am wanting to change the default home page from "node" to a value "home"

I have created a page, and using clean url's, set the url as "home"

I have tested that the url is valid by going to http://mysite.com/home - I get the page

When I put "home" as the value in the default path I get an error

The path 'home' is either invalid or you do not have access to it.

I am logged is as user 1

I have tried a different url path name - did not resolve

I have only one page of content so far - tried to add a second - did not resolve either

Hope this helps

Alex

CommentFileSizeAuthor
#6 path_front.patch934 bytescatch
#1 system.path_.admin_.patch950 bytesmarcingy
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

marcingy’s picture

Priority: Normal » Critical
FileSize
950 bytes

This issue is because the patch alias wasn't being converted into the true path before being checkd for validity.

Patch provided

marcingy’s picture

Status: Active » Needs review
marcingy’s picture

Version: 6.0-rc1 » 6.x-dev
Rowanw’s picture

Status: Needs review » Needs work

(Stripping trailing CRs from patch.)

Otherwise the patch appears to work.

However the extra notice isn't really necessary (below) as it doesn't change anything for the user.

"The menu system stores system paths only, but will use the URL alias for display. x has been stored as node/1"

marcingy’s picture

I did this as this replicates how the menu admin screens work for adding a menu item. I'll re-roll the patch in morning to remove the CRS.

catch’s picture

Status: Needs work » Reviewed & tested by the community
FileSize
934 bytes

OK I tested this and it works fine. Agree 100% with using the same logic and string as the menu system (and since it's an identical string it should be ok post freeze I guess).

Trailing CRs don't stop things from being committed afaik, but here's one without anyway. Don't credit me for it if it gets committed.

Gábor Hojtsy’s picture

Title: Edit Site Information - Default front page » Path aliases are not possible to use as default front page
Priority: Critical » Normal
Status: Reviewed & tested by the community » Fixed

- I would not call this bug critical, it does not stop Drupal from working in any case. Also retitled so we have a proper title for the issue.

- Reviewed the patch, and although we can argue about the default front page not being part of the menu system, we are definitely dealing with a menu system design artifact here, so the message was right there IMHO.

Committed. Thanks.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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