KiGG supports the return of stories with a specific tag (example
http://dotnetshoutout.com/Tags/Silverlight) provided the tag is valid. If the tag is invalid, a 404 custom error is returned. This is as expected.
If one sends the request
http://dotnetshoutout.com/Tags one gets the same 404 error.
Looking at the code in StoryController.cs (line 247 in version 2.2), one finds:
public ActionResult Tags(string name, int? page)
name = name.NullSafe();
This would seem to indicate that all published stories should be returned rather than a 404. Is this a bug??
In any case, what I would like to have happen is to simply return a list of all Tags. I would also like to do the same thing for Categories (as an aside, if one looks at line 90 in StoryController.cs,
the same possible bug appears for categrories as tags).
What is the best way to go about this? Should I add a new route in RegisterRoutes.cs and create new controllers and views to return these lists or is it better to just use the Default route and modify StoryController.cs?