0

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

1 Answer 1

1

That 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.

2
  • Thanks Giri, the problem is that I need the locale module.
    – a77icu5
    Commented Jul 11, 2014 at 2:53
  • ok, hope I do answered your question
    – GIRI
    Commented Jul 11, 2014 at 4:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.