Determine template path with action namespace instead of request uri

Part of https://issues.apache.org/jira/browse/WW-3655