Skip to content
Snippets Groups Projects
Commit 50f10342 authored by Kevin Ditscheid's avatar Kevin Ditscheid
Browse files

[BUGFIX] Fix SgAjax ViewHelper and introduce a Link ViewHelper

parent 1bbe1306
No related branches found
No related tags found
No related merge requests found
......@@ -37,7 +37,7 @@ export default class Likes {
};
request.open(
'POST',
'?eID=sgAjax&extensionName=SgNews&controller=Ajax\\Like&action=addLike&format=json'
'?tx_sgajax[extensionName]=SgNews&tx_sgajax[controller]=Ajax\\Like&tx_sgajax[action]=addLike&tx_sgajax[format]=json'
);
request.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
request.send(`parameters[newsPid]=${this._newsId }`);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment