In development mode I access a page in my application as:
baseUrl variable and toggle it based on your environment. You can check the
window.location value to see which environment your app is being accessed in.
var baseUrl = "";
var baseUrl = "/myapp";
Then, define your
data-url property using the
var dataUrl = baseUrl + "/red/edit";