improve query string data parsing

some times it is very necessary to has a # in a menu link.
This patch will you to use both, hash or query string for the links.