I have urls that look like this
~\articles\energy\topweek
~\articles\metals\latestpopular
where the second line of url is a category and the third is a filter
so the route is as follows
routes.MapRoute("ArticleFilter",
"articles/{category}/{filter}",
new { controller="Article", action="Filter" })
This is pretty easy and everything works fine.
So let's say if I look at the articles {category} \ default view.
How to create links to display the current category using filters.
Example: If the current page articles\energy, I need to build article\energy\topweekand article\energy\latestpopular.
Where the category should be dynamic based on the current page. preferably on a partial image, so I can use it on different pages.
source
share