Drupal Answers is a question and answer site for Drupal developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have Pathauto installed, so URLs to nodes are not like node/3. My question is that if I write a View with a contextual filter for looking for node/3, will it work?

Note: This contextual filter is in a block. See this question.

share|improve this question
up vote 2 down vote accepted

You would get the node id(nid) as argument. Internally the system gets its data from the unaliased url, not the browser url created with path_auto.

share|improve this answer

pathauto only generates aliases. the nid stays the same. so contextual filters based on nid no problem.

share|improve this answer
I am talking about getting the nid out of the url, not doing a contextual filter based on the nid. – Gaelan Sep 30 '12 at 21:18

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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