Drupal 7 Contextual Filter on URL Alias I have a view which shows a list of articles, located at:


  mypage.com/articles


Each article is linked to its main sub page view, like this:


  mypage.com/articles/name-of-my-artile-yay


The URL path is created with autopath &amp; URL aliases.

In views, how do I create a contextual filter to show only the selected sub page view?

I have this as my path in views: 


  articles/%


but don't know where to go from here. I tried title and making it lowercase and replacing spaces with a hyphen, but that won't always work and the URL aliases change the URL such that it removes words like: 


  a, an, as, at, before, but, by


And if a page title is:


  This is my page title - with this


The URL alias becomes:


  my-page-title


Therefore it won't be able to match in my contextual filter using the page title.

What am I missing?
I think the simpliest way is to use Panels, and override the Node page. Add a variant and put your view in it, and send the node's nid argument to it, using node:nid contextual argument.


(install page manager)
Enable node view page (node/%node)
Add a variant, set a validation criteria selecting your concerned node type
Use simple one-column display
Add your view in your column
It asks for an argument, send the node:nid, (or entity_id, or whatever)
In your view, use node:nid contextual filter


All is done.