Paths lost on feature revert, or when transferring feature to another site
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #1872622. --> Reported by: [mrfelton](https://www.drupal.org/user/305669) >>> <p>I think the problem here is that you are using path aliases, and then trying to export these to features, but the export code looks like this:</p> <pre>&nbsp;&nbsp;&nbsp; "paths" : {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "submit" : {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "pid" : "48026",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "source" : "eform\\/submit\\/cw-contact",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "alias" : "contact",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "language" : "und"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; },<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "confirm" : {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "pid" : "48027",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "source" : "eform\\/cw-contact\\/confirm",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "alias" : "contact\\/confirm",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "language" : "und"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; }</pre><p>Which contains the 'pid' (unique id) of the alias, but the pid is not guaranteed to be consistant acros sites as it is just an incrementing number and not a machine name. It is incredibly unlikely that 2 different sites would share the same pid for a single alias, and so when you export try to revert the feature on a site where the pid for the alias is different, the entityform just looses its alias all together.</p> <p>Also related <span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-7"><a href="https://www.drupal.org/project/uuid_features/issues/982818" title="Status: Closed (fixed)">#982818: Make it possible to export URL aliases</a></span></p>
issue