This is a major problem for me. My site contains multiple books. Each book uses identically worded book pages. The content is different.

So book1 using pathauto automatically generates urls "/content/bookpage1", "content/bookpage2" etc.
I create book2 which also uses bookpages called "bookpage1", bookpage2 etc. and instead of using a unique URL it is reusing existing urls "/content/bookpage1", "content/bookpage2". Not sure why or how exactly this is happening as it does sometimes create unique urls but adding a 0, 1, 2 at the end but sometimes it ends up being duplicate. That is something you would NEVER want happening. It ended up corrupting several books of mine by combining the content. A very bad situation for me. By the time I noticed what was happening I had ruined months of work.

Comments

greggles’s picture

Status: Active » Postponed (maintainer needs more info)

@mustardman - thanks for your bug report and I'm sorry that this is causing problems for you.

Unfortunately, I don't understand what is happening on your site and this doesn't sound similar to any other bugs in the queue so I don't have an immediate idea how to repeat the bug. Repeating the bug is the first step so that I know I'm fixing the right thing. Could you please start over on a test site with only pathauto, token, and book installed and then record every step you take until the error happens?

Without that it will be very difficult to understand how to fix this problem.

mustardman’s picture

Here is how you duplicate the error. NOTE: I am not using Taxonomy so perhaps that is part of the problem.

Step 1: On a site create two books with long titles (I think this may be part of the problem). The titles are long enough such that pathauto creates an abbreviated url for it. The first half of the title for both books are the same such that the abreviated url created by pathauto ends up being the same. If pathauto does not create duplicate urls then go to step #2:

Step 2: In longtitledbook1 create a page titled bookpage1. Pathauto should automatically create a url something like mydomain/longtitledbook/bookpage1

In the second book create a page titled bookpage1. Pathauto should automatically create a duplicate url so anything done to bookpage1 on either book will be duplicated. That is not the expected result as both books are expected to have different content even if the first half of their titles are the same and their book pages use the same titles.

Dave Reid’s picture

Priority: Critical » Normal
Status: Postponed (maintainer needs more info) » Active
Dave Reid’s picture

Title: automatically generated URLs are causing duplicate errors » Aliases with long segments cause duplicate errors
Category: bug » support
Status: Active » Postponed (maintainer needs more info)

Can you post the exact URL alias pattern you're using on your book content types?

Dave Reid’s picture

Status: Postponed (maintainer needs more info) » Fixed

Marking as fixed due to lack of feedback.

Status: Fixed » Closed (fixed)

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