added wildcard support and fixed issue of links with "_blank" target loaded in current tab/window.