If we try to load an url with parameter, the extension was "xxx?param=xxx...".
Just added a split on '?' to get he true extension.