Switch from full URI to absolute path for View links
This commit is contained in:
parent
7ba7232b59
commit
96745ef2b6
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ var SearchResultRow = React.createClass({
|
||||||
|
|
||||||
// No support for lbry:// URLs in Windows or on Chrome yet
|
// 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.")) {
|
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 {
|
} else {
|
||||||
var linkURI = displayURI;
|
var linkURI = displayURI;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue