1. Install path auto.
2. go to language (admin/config/regional/language). Edit language prefix with something like 'german-lan'

All nodes having path lengths less than 'german-lan' are redirecting to homepage. I think the bone of contention is the following code:

if (!empty($language->prefix)) {
  $base_string .= $language->prefix . '/';
}

If we are checking that language prefix is not empty, we should also check if path contains language prefix.

CommentFileSizeAuthor
#1 language-prefix-issue-1949866.patch561 bytesqasimzee

Comments

qasimzee’s picture

Status: Active » Needs review
StatusFileSize
new561 bytes

I think we should also check that language prefix is available in the path. PFA the patch that worked for me.

CShark’s picture

Title: Wrong breadcrumb link if language prefix is enabled. » Wrong breadcrumb link with url prefix.
Status: Needs review » Needs work

I think, that this issue is related to all url prefixed webpages. e.g. my document root is in "dump.net/root/", the "root" part gets added to any breadcrumb link except the homepage in 3.0-beta3 (like "dump.net/root/root/node/7"). In the dev version, dead links automatically redirect to the front page.

kalabro’s picture

Status: Needs work » Postponed (maintainer needs more info)

I can reproduce neither #0 nor #2.

@qasimzee, works for short (ru) and long (crazy-russians) language prefixes with enabled/disabled Pathauto.

@CShark, did you configure properly RewriteBase and $base_url?

Could you please provide steps to reproduce the problem like I did here: #1982528-3: Notice: Undefined property: stdClass::$machine_name in path_breadcrumbs_ui_edit_page

kalabro’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)