<!-- THEME DEBUG -->
<!-- THEME HOOK: 'field' -->
<!-- FILE NAME SUGGESTIONS:
   ▪️ field--node--title--article.html.twig
   ✅ field--node--title.html.twig
   ▪️ field--node--article.html.twig
   ▪️ field--title.html.twig
   ▪️ field--string.html.twig
   ▪️ field.html.twig
-->
<!-- BEGIN OUTPUT from 'themes/contrib/classy/templates/field/field--node--title.html.twig' -->
<span class=Alias not set in node creation ">

Alias not set in node creation

If you are programmatically creating a node, and setting the alias is not working, make sure you have turned off the "Generate automatic URL alias" setting:

 

$node->path->pathauto = FALSE; $node->set('path', $st_alias); $node->save();