Handle return URLs to plugins with no hash

If a plugin is activated, the javascript will select that div
unless a hash is provided (such as #instances or #ttusers)

In reference to #1780