I'm using path auto to automatically generate url aliases. On my dev site it would be convenient to use standard node/123 urls. Is there a way to do that? Just turning off pathauto and path won't do the trick

  • unless I am once again missing the point, node/# will work regardless of whether an alias is set – Jimajamma Apr 13 '12 at 0:58
  • yes, it will work but I would like to have node/# be used for links on the dev site so I can quickly mouse over the links and see the node ids – uwe Apr 13 '12 at 5:21
  • if you are creating them with l() you should be able to set the alias option to TRUE, and then the alias won't be looked up and will leave the node/# in place... – Jimajamma Apr 13 '12 at 5:24
  • of course, d'oh! this sets up a different code base for your development system unless you have a admin setting / variable you can access to toggle this – Jimajamma Apr 13 '12 at 5:27
  • 1
    or just set the aliases to include the nid, eg, node/123 aliases to foo/123 and then your mouse overs will give you the nid you are looking for – Jimajamma Apr 13 '12 at 5:37

I think the problem is that the {url_alias} still has the aliases in it.

My suggestion would be to take a backup, then delete a few manually from "admin/build/path" (Drupal 6) or "admin/config/search/path" (Drupal 7), and then try the "node/nid" paths for the entries you deleted. Then, take another backup :) and either delete them via the Delete aliases tab.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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