Hello.
I’m developing app with connect and I have a problem on my stage server.
I have a code that looks like this:
<aui-item-link class="edit" href="#" data-id="{{id}}">Edit</aui-item-link>
<aui-item-link class="review" href="#" data-id="{{id}}">Review</aui-item-link>
AJS.$(".edit").click(function(e) {
e.preventDefault();
let id = this.getAttribute('data-id');
AP.require('dialog', function(dialog){
dialog.create({
key: 'item-edit',
customData: { id: id }
});
});
});
AJS.$(".review").click(function(e) {
e.preventDefault();
let id = this.getAttribute('data-id');
AP.require('dialog', function(dialog){
dialog.create({
key: 'item-review',
customData: { id: id }
});
});
});
app.get('/item/:id/edit', addon.authenticate(), controller.edit);
app.get('/item/:id/review', addon.authenticate(), controller.review);
{
"url": "/item/{ac.id}/edit",
"options": {
"chrome": false,
"size": "x-large",
"header": {
"value": "Edit"
}
},
"key": "item-edit",
"conditions": [
{
"or": [
{
"condition": "user_is_sysadmin"
},
{
"condition": "user_is_admin"
}
]
}
]
},
{
"url": "/item/{ac.id}/review",
"options": {
"chrome": false,
"size": "x-large",
"header": {
"value": "Review"
}
},
"key": "item-review",
"conditions": [
{
"or": [
{
"condition": "user_is_sysadmin"
},
{
"condition": "user_is_admin"
}
]
}
]
}
On my development instance it works properly. The edit action has the same code and works properly everywhere, but when I try to do review action on my stage server I get an error:
Error: The content resolver threw the following error:
Unable to retrieve addon module URL. Please check your specified module key.
I’ve looked into possible solution but nothing helped so far. Anyone had this issue?