mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 10:01:40 -05:00
change getOutgoingUrl so it doesn't use IR but the siteUrl setting instead
This commit is contained in:
parent
5cbae3a3cb
commit
73aa3138cd
1 changed files with 3 additions and 1 deletions
|
@ -88,7 +88,9 @@ invitesEnabled = function () {
|
|||
return getSetting("requireViewInvite") || getSetting("requirePostInvite");
|
||||
};
|
||||
getOutgoingUrl = function(url){
|
||||
return Router.routes['out'].url({}, {query: {url: url}});
|
||||
// we don't use IR's url() function here in case ROOT_URL hasn't been set
|
||||
var cleanUrl = encodeURIComponent(url);
|
||||
return getSetting('siteUrl', Meteor.absoluteUrl()) + 'out?url=' + cleanUrl;
|
||||
};
|
||||
// ---------------------------------- String Helper Functions ----------------------------------- //
|
||||
cleanUp = function(s){
|
||||
|
|
Loading…
Add table
Reference in a new issue