Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
On a multilingual site with path aliases in a specific language, the following message is displayed when saving a Beanstag that containings a non-default language alias.
The path does not exist
This is caused by: 1. the alias in the url_alias
table has a language value equal to the language of the node (site is using content translation module); 2. the call to drupal_lookup_path() does not provide a language, and therefore the default language is used to lookup the alias.
Comment | File | Size | Author |
---|---|---|---|
#3 | beanstag-multilingual-path-2660212-3.patch | 1.17 KB | Sutharsan |
| |||
#3 | interdiff-2660212-2-3.txt | 750 bytes | Sutharsan |
#2 | beanstag-multilingual-path-2660212-2.patch | 1.14 KB | Sutharsan |
|
Comments
Comment #2
Sutharsan CreditAttribution: Sutharsan commentedThis patch fixes the problem for me.
It needs to be investigated if this also works in other multilingual configurations (a.o. Entity Translation).
Comment #3
Sutharsan CreditAttribution: Sutharsan commentedI did not consider all return values of
language_url_split_prefix()
. This patch does better.Comment #5
ykyuen CreditAttribution: ykyuen as a volunteer commentedGreat~ thx for your patch. I will take a look and release them in the coming weeks.
Comment #6
ykyuen CreditAttribution: ykyuen as a volunteer commentedpath applied to dev branch. if no problem, will create a new release. thanks again. =)
Comment #7
ykyuen CreditAttribution: ykyuen as a volunteer commentedComment #9
ykyuen CreditAttribution: ykyuen as a volunteer commentedit should also works in entity translation.
Comment #10
ykyuen CreditAttribution: ykyuen as a volunteer commentedCommitted to 7.x-1.4.