Fix ajax request url for loading pattern into edit.