Any of you guys know why drupal it's duplicating my url alias when save a new node?
$node->path = 'st.louis';
node_save($node);
But in my alias table I have st.luis and stlouis
Drupal Answers is a question and answer site for Drupal developers and administrators. It only takes a minute to sign up.
Sign up to join this communityThat might be because of Locale core module. I had the same problem, but when i disabled the Locale module the problem was gone.
You can observe the main cause of the problem. When you look into the duplicate url aliases you will find the difference between the original url alias and duplicate url alias. In the original url alias you will have language = "
and whereas with new/duplicate url alias you will find language = 'en'
.
Hope this answers your question.