11 lines
209 B
JavaScript
11 lines
209 B
JavaScript
import { Meteor } from 'meteor/meteor';
|
|
|
|
export default function(path) {
|
|
if (path) {
|
|
// Remove the leading "/"
|
|
path = path.replace(/^\//, '');
|
|
}
|
|
|
|
return Meteor.absoluteUrl(path);
|
|
}
|