you can use full url so that you don't need to pass $isLocal.