Skip to content

Commit d30c727

Browse files
committed
Maintain existing path, but add view and uniqueKey to RouteData
There's a good argument for relaying the discovered topic's `UniqueKey()` as a `RouteVariable`. But rewriting the `path` variable, as was previously done, not only confused terms, but also breaks the processing if/when `TopicsRouteHandler` is reevaluated.
1 parent a6b5c91 commit d30c727

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Ignia.Topics.Web/TopicsRouteHandler.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,11 @@ public IHttpHandler GetHttpHandler(RequestContext requestContext) {
9999
/*------------------------------------------------------------------------------------------------------------------------
100100
| Set route data
101101
\-----------------------------------------------------------------------------------------------------------------------*/
102+
routeData.Values ["view"] = viewName;
102103
routeData.Values ["targetPath"] = targetPath;
103104
routeData.Values ["contentType"] = topic.ContentType;
104105
routeData.Values ["directory"] = requestContext.HttpContext.Request.Url.AbsolutePath;
105-
routeData.Values ["path"] = topic.GetUniqueKey();
106+
routeData.Values ["uniqueKey"] = topic.GetUniqueKey();
106107

107108
/*------------------------------------------------------------------------------------------------------------------------
108109
| SET TARGET TYPES

0 commit comments

Comments
 (0)