Show tab using anchor

Bootstrap uses anchors to show different tabs in the page.  This patch enables the anchors to be recognized in GenericFile#edit so that the correct tab will be displayed when the page loads.
well, if there's no anchor it shouldn't do anything.  So `switch()` without a default? Or default is nil?