diff --git a/examples/demo/modules/blog/cms_blog_module.e b/examples/demo/modules/blog/cms_blog_module.e index d3155b2..bd34810 100644 --- a/examples/demo/modules/blog/cms_blog_module.e +++ b/examples/demo/modules/blog/cms_blog_module.e @@ -117,13 +117,13 @@ feature -- Access: router configure_web (a_api: CMS_API; a_node_api: CMS_NODE_API; a_router: WSF_ROUTER) local l_blog_handler: BLOG_HANDLER + l_node_handler: NODE_HANDLER l_uri_mapping: WSF_URI_MAPPING do -- TODO: for now, focused only on web interface, add REST api later. [2015-May-18] create l_blog_handler.make (a_api, a_node_api) create l_uri_mapping.make_trailing_slash_ignored ("/blogs", l_blog_handler) a_router.map_with_request_methods (l_uri_mapping, a_router.methods_get) - --a_router.handle_with_request_methods ("/node/{id}", l_node_handler, a_router.methods_get) end feature -- Hooks diff --git a/modules/node/handler/blog_handler.e b/modules/node/handler/blog_handler.e index 3f8aef7..a6a2934 100644 --- a/modules/node/handler/blog_handler.e +++ b/modules/node/handler/blog_handler.e @@ -47,7 +47,7 @@ feature -- HTTP Methods lnk := node_api.node_link (n) s.append ("
  • ") s.append (l_page.link (lnk.title, lnk.location, Void)) - -- s.append (l_page.link (n.title + " (#" + n.id.out + ")", node_api.node_path (n), Void)) + --s.append (l_page.link (n.title + " (#" + n.id.out + ")", node_api.node_path (n), Void)) s.append ("
  • %N") end end diff --git a/src/service/cms_api.e b/src/service/cms_api.e index 655ed43..19dbebf 100644 --- a/src/service/cms_api.e +++ b/src/service/cms_api.e @@ -273,7 +273,7 @@ feature -- Path aliases do Result := a_source if attached storage.path_alias (Result) as l_path then - Result := l_path + Result := "/" + l_path end end