Fixed sub url parsing. Only parameters belonging to the encoded sub url
are now recognized and returned.