fixes #1609 - Generated links are relative to site root

This commit is contained in:
Luke Pulverenti 2016-04-08 14:00:35 -04:00
parent 84bc124a55
commit c079d4b7c2

View File

@ -84,7 +84,7 @@ namespace MediaBrowser.Server.Implementations.Social
var externalUrl = _appHost.GetSystemInfo().WanAddress; var externalUrl = _appHost.GetSystemInfo().WanAddress;
info.ImageUrl = externalUrl + "/Social/Shares/Public/" + info.Id + "/Image"; info.ImageUrl = externalUrl + "/Social/Shares/Public/" + info.Id + "/Image";
info.Url = externalUrl + "/web/shared.html?id=" + info.Id; info.Url = externalUrl + "/emby/web/shared.html?id=" + info.Id;
var item = _libraryManager.GetItemById(info.ItemId); var item = _libraryManager.GetItemById(info.ItemId);