I have a book with three child pages. I set the pathauto placeholder to [bookpath], but encountered the following problems:
1.) No alias for the book page (top-level) is generated. There is just a message saying the 'book page was updated'
2.) When I create a child page, pathauto prints out a message saying the alias was generated, but the url path settings field shows nothing.
Screenshot attached for problem 1
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | pathauto_alias_created_when_manually_done.gif | 9.27 KB | venkat-rk |
| #2 | no_url_alias_on_node_edit.gif | 1.53 KB | venkat-rk |
| #1 | pathauto_bookpage_alias_not_created.gif | 10.58 KB | venkat-rk |
| pathauto_toplevel_bookpage_alias.gif | 3.61 KB | venkat-rk |
Comments
Comment #1
venkat-rk commented1st screenshot for problem no.2
The contradiction between the pathauto message and the browser url can be seen.
Comment #2
venkat-rk commentedNo alias in the url path settings field when I edit the book page.
Comment #3
venkat-rk commentedThe alias is finally created after I manually entered it in the url path settings.
Comment #4
venkat-rk commentedI looked at this again on a fresh site without additional modules (category, for instance) that might muddle the picture. Pathauto seems completely broken for book pages.
Details
Pathauto experience
Without pathauto
I turned off pathauto and manually entered the aliases for the book pages. Worked perfectly.
So it seems pathauto has a definite problem with book page aliases. Since book is a core module, it doesn't have any code in it for pathauto, rather it is pathauto that has placeholder codes for creating book pages aliases.
No screenshots this time. I did it once (as I do for most bug reports) and was given a big lecture in return and felt like a fool. I hope at least this helps someone.
Comment #5
venkat-rk commentedReconfirming this bug even with the latest pathatuo module. When placeholder is set to [bookpath] and the top level book page is created, its corresponding alias is *not* created. Instead, the url is www.example.com/node/nid
When a child page is added to this top level page, the alias is generated, but it aliases the book's name, not the title of the child page.
Comment #6
NickHBO commentedI can confirm this issue. I do get proper bookpath aliases; however, I also get page-style aliases. Whatever pattern is used for my "page" nodes is also used on every single book node.
It is possible that the bookpath aliases I see are from before the code was broken, as I have used pathauto for a long time. Deleting all the page-like aliases for the nodes and running bulk update puts them right back, so it's certainly reproducible.
I hope someone can find a solution to this soon; as site content grows, the number of aliases to delete grows n*3 (if you turn on feed and index aliases).
Comment #7
venkat-rk commentedThanks for confirming that I am not alone. But in my setup, I was not using the page module, so there may be two variants of this bug actually.
Comment #8
greggles@NickHBO - are you saying that a bulk update fixes the problem? If so that leads a little further towards clues of how to fix this.
Comment #9
The.Clue commentedconfirmed.
but different behaviour: til yesterday it worked like a charm, then after a bulk update....everything messed up!
i truncated url_alias table on database and redid from start. no changes: book and bookpath now are broken
and google is VERY UNHAPPY for this -.-
Comment #10
gregglesThanks to everyone for your help so far. In order to fix this I need to be able to repeat it and in order to repeat it I need a "simplified repeatable test case" which causes this problem.
Please, start with a brand new Drupal5.x site, enable the book, pathauto 5.x-2.0, token 5.x-1.9, and provide the shortest list of steps possible to repeat this problem. I empathize with getting bad paths, but I can't fix the problem until I can repeat it and the descriptions of the problem so far don't help me. I'm closing this until someone can clarify.