Making a navigation out of a matrix?
Take a look at Craft's advanced routing. You'll need to define a regex pattern in order to create the named subpattern that you want, but once you've done that you can access the variable directly in your template.

In the following example {{ year }} and {{ month }} become available as variables in the news/_archive template

'news/(?P&lt;year&gt;\d{4})/(?P&lt;month&gt;\d{2})' =&gt; 'news/_archive',