FIXME: Use absolute URIs for threads

FREEZE-blogpost-2021-01-19
Felix 2019-06-17 06:45:13 +02:00
parent 944e484684
commit 3e89147ffa
3 changed files with 4 additions and 3 deletions

View File

@ -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");

View File

@ -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) {

View File

@ -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>