Skip to content

Commit

Permalink
BUGFIX: respect current dimensions when sending from UI
Browse files Browse the repository at this point in the history
  • Loading branch information
dimaip authored May 1, 2017
1 parent 6f6a5d4 commit 89dd80b
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,17 @@ define([
this.set('errorMessageId', 'js.error');
}
}.bind(this);

// TODO: can we do it cleaner?
var siteContextPath = document.getElementById('neos-document-metadata').dataset.neosSiteNodeContextPath;
var context = siteContextPath.split('@')[1] || '';
var dimensions = (';' + context.split(';')[1]) || '';
var nodeContextPath = this.get('controller.nodeProperties._path') + '@live' + dimensions;
var data = {
subscription: this.get('subscription'),
node: this.get('controller.nodeProperties._path')
node: nodeContextPath
};

if (testEmail) {
data.email = testEmail;
}
Expand Down

0 comments on commit 89dd80b

Please sign in to comment.