id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc,branch,changelog,apichanges,internalchanges 12813,Get resource from request,Ryan J Ollos,,"[th:VotePlugin] needs to get the `resource` for a request. It currently does this in a way that isn't entirely robust, see [th:browser:voteplugin/trunk/tracvote/__init__.py@16224#L83 resource_from_path]. See also th:#11073. The reason the method isn't robust is that it assume the path `/` corresponds to `wiki/WikiStart`, but this depends on [[TracIni#trac-default_handler-option|[trac] default_handler]] and the [/prefs/userinterface session preference] for default handler. I seem to remember the issue coming up for other plugins ([th:BookmarkPlugin]?) as well, and it may be needed for #11078. I've considered adding a function `resource_from_request`. The resource realm, id, parent realm/id and version can be parsed from the URL. However, I'm unsure how to get the `resource` for a request to `/`. Any ideas?",enhancement,closed,normal,,general,,normal,wontfix,resource,,,,,