Fix url detection using elgg method