Switch from full URI to absolute path for View links

This commit is contained in:
Alex Liebowitz 2016-04-21 00:52:07 -04:00
parent 7ba7232b59
commit 96745ef2b6

View file

@ -92,7 +92,7 @@ var SearchResultRow = React.createClass({
// No support for lbry:// URLs in Windows or on Chrome yet
if (/windows|win32/i.test(navigator.userAgent) || (window.chrome && window.navigator.vendor == "Google Inc.")) {
var linkURI = window.location.host + "/view?name=" + this.props.name;
var linkURI = "/view?name=" + this.props.name;
} else {
var linkURI = displayURI;
}