also deal with possible query string
don't assume language slugs are 2 characters, but assume it's the first slug