Adjusted ftdoc:// handler

(precedence of switches)