@RoySegall this fix needs to provide a fix for all node types not just pages.

Look at the use-cases above: 
* If you change the page pathauto alias to "publications/%title" instead of "%title" it should still work.
* This code should also take into account when someone creates a publication called "export" right now it does not fix that use case
* Similarly it should fix the case when a user creates a vocab called "calendar" and a term called "upcoming"