Favor FlowRouter.url over Meteor.absoluteUrl

It hides the leading slash treatment as an hidden implementation
detail.
This commit is contained in:
Maxime Quandalle 2016-01-05 13:37:15 +01:00
parent 9ef8ebaf09
commit 701262a439
3 changed files with 17 additions and 34 deletions

View file

@ -19,7 +19,7 @@ Template.boardMenuPopup.helpers({
exportUrl() {
const boardId = Session.get('currentBoard');
const loginToken = Accounts._storedLoginToken();
return Meteor.absoluteUrl(`api/boards/${boardId}?authToken=${loginToken}`);
return FlowRouter.url(`api/boards/${boardId}?authToken=${loginToken}`);
},
exportFilename() {
const boardId = Session.get('currentBoard');