This is a strange issue that just crept up after updating to 7.x-3.5. If any user publishes content from any domain other than the first (ID 1), a "1" is prepend to the alias.

Example:

Instead of this (proper):

<a href="/article/drupal-rocks">Drupal Rocks</a>

This gets created instead:

<a href="1/article/drupal-rocks">Drupal Rocks</a>

It gets prepended to every instance that node is displayed. When editing the node it shows the proper alias "article/drupal-rocks". Every listing of the node has a "1" prepended to the alias.

It could be another module causing this, since I did update several at the same time yesterday. Just curious if anyone knows off the top their heads what could be causing this.

CommentFileSizeAuthor
#6 1859794-soource-domain.patch690 bytesagentrickard

Comments

duntuk’s picture

Another interesting thing is the contextual links "edit" has the "1" prepended, but "delete" does not (it's proper).

duntuk’s picture

OK... found something else out.

This ONLY happens if the domain ID is 2 digits (could be more, I don't have that many domains to test), then the first digit gets appended to the URL...

e.g. Domain ID 32

<a href="3/article/drupal-rocks">Drupal Rocks</a>

e.g. Domain ID 27

<a href="2/article/drupal-rocks">Drupal Rocks</a>

e.g. Domain ID 12

<a href="1/article/drupal-rocks">Drupal Rocks</a>

e.g. Domain ID 8 (not an issue)

<a href="/article/drupal-rocks">Drupal Rocks</a>

e.g. Domain ID 3 (not an issue)

<a href="/article/drupal-rocks">Drupal Rocks</a>

etc...

pr3dr49’s picture

Same issue here, just expanded to more than one domain. On a site hosting five domains, content published to more than one domain (send to all affiliates NOT checked) looks right on the source domain. All other domains prepend /domain_id/ to URLs, which leads to content not find. Manually deleting this string from the URL produces the right content on all domains. In my case, this affects the content printed in views. When send to all affiliates IS selected, this problem does not persist and links work as expected. Clean URLs and domain alias are enabled.

zcrow’s picture

Priority: Normal » Critical

Same thing here. Pretty much is breaking my site navigation right now.

It isn't only a '1' that is being added. Seems that it has something to do with the owner of page so it can be pretty much any number at all.

If I change the source domain of a node then that node will be able to access the page normally without adding the domain id to the url. Other domains trying to access this page will now have the domain id of the source domain added to the url. It is possible to move the error around depending on which domain you assign the source domain to.

agentrickard’s picture

agentrickard’s picture

Status: Active » Needs review
StatusFileSize
new690 bytes

Patch.

zcrow’s picture

Brilliant. That fixed it.

agentrickard’s picture

Status: Needs review » Reviewed & tested by the community
agentrickard’s picture

Status: Reviewed & tested by the community » Fixed

Fixed.

   9ff5370..789491e  7.x-3.x -> 7.x-3.x

I will likely roll a release tomorrow.

duntuk’s picture

Thank you. latest DEV version fixed it.

agentrickard’s picture

7.x-3.6 is out now.

Status: Fixed » Closed (fixed)

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

Anonymous’s picture

Issue summary: View changes

updated url with