FIXME: Use absolute URIs for threads
parent
944e484684
commit
3e89147ffa
|
@ -3,7 +3,7 @@ define(["app/lib/promise", "app/globals"], function(Q, globals) {
|
|||
"use strict";
|
||||
|
||||
var salt = "Eech7co8Ohloopo9Ol6baimi",
|
||||
location = function() { return window.location.pathname };
|
||||
location = function() { return window.location.host + window.location.pathname };
|
||||
|
||||
var script, endpoint,
|
||||
js = document.getElementsByTagName("script");
|
||||
|
|
|
@ -52,7 +52,7 @@ require(["app/lib/ready", "app/config", "app/i18n", "app/api", "app/isso", "app/
|
|||
}
|
||||
|
||||
$('#isso-root').textContent = '';
|
||||
api.fetch(isso_thread.getAttribute("data-isso-id") || location.pathname,
|
||||
api.fetch(isso_thread.getAttribute("data-isso-id") || location.host + location.pathname,
|
||||
config["max-comments-top"],
|
||||
config["max-comments-nested"]).then(
|
||||
function (rv) {
|
||||
|
|
|
@ -90,7 +90,8 @@
|
|||
<div class='text-wrapper'>
|
||||
<div class='isso-comment-header' role='meta'>
|
||||
{% if order_by != "tid" %}
|
||||
<div>Thread: {{comment.title}} (<a href="{{comment.uri}}">{{comment.uri}}</a>)</div><br />
|
||||
<!-- TODO: Add host component to uri -->
|
||||
<div>Thread: {{comment.title}} (<a href="https://{{comment.uri}}">{{comment.uri}}</a>)</div><br />
|
||||
{% endif %}
|
||||
{% if comment.author %}
|
||||
<span class='author' id="isso-author-{{comment.id}}">{{comment.author}}</span>
|
||||
|
|
Loading…
Reference in New Issue