trim url to remove @,# and things after it, fix wrong parameter name fromcerth