I have urls that look like this
~\articles\energy\topweek
~\articles\metals\latestpopular
where second url string is a category and third is a filter
so route looks like this
routes.MapRoute("ArticleFilter",
"articles/{category}/{filter}",
new { controller="Article", action="Filter" })
That's pretty easy and everything works fine.
So lets say if i'm looking at articles{category}\ default view.
How do I construct links to point to current category with filters.
Example: if current page articles\energy
I need to construct article\energy\topweek and article\energy\latestpopular.
Where category should be dynamic based on the current page. preferably in a partial view so I can use it across different pages.
Thank you