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.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | language-prefix-issue-1949866.patch | 561 bytes | qasimzee |
Comments
Comment #1
qasimzee commentedI think we should also check that language prefix is available in the path. PFA the patch that worked for me.
Comment #2
CShark commentedI 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.
Comment #3
kalabroI 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
Comment #4
kalabroPlease try latest dev. Does this #1893878-6: Duplicated path prefix in urls when using Path Breadcrumbs render function helped in your case?
Main issue: #1893878: Duplicated path prefix in urls when using Path Breadcrumbs render function