The ajax url is hardcoded, i.e. the /admin prefix. This should be dynamic, is there anything that can be done to make it dynamic?