diff --git a/library/server/wsf/router/documentation/wsf_router_self_documentation_message.e b/library/server/wsf/router/documentation/wsf_router_self_documentation_message.e
index a39b7180..61eadc26 100644
--- a/library/server/wsf/router/documentation/wsf_router_self_documentation_message.e
+++ b/library/server/wsf/router/documentation/wsf_router_self_documentation_message.e
@@ -119,18 +119,16 @@ feature {WSF_RESPONSE} -- Output
l_description.append ("")
end
- if attached resource as l_resource and then attached request.path_info as l_path then
- if l_path.starts_with (l_resource) then
- l_api_resource := l_path.substring (l_resource.count + 1, l_path.count)
- if l_api_resource.is_empty then
- l_api_resource := Void
- end
+ if doc_url_supported and then attached {WSF_STRING} request.query_parameter ("api") as l_api then
+ l_api_resource := l_api.value
+ if l_api_resource.is_empty then
+ l_api_resource := Void
end
end
if l_api_resource /= Void then
if doc_url_supported then
- l_description.append ("Index
")
+ l_description.append ("Index
")
end
if attached router.item_associated_with_resource (l_api_resource, Void) as l_api_item then
l_description.append ("