Fixed url not triming correctly

Added workaround for gridfield state's not carrying over