diff --git a/news/static/browse.html b/news/static/browse.html index 7e89ac2..efb0276 100644 --- a/news/static/browse.html +++ b/news/static/browse.html @@ -157,7 +157,7 @@ const [url, meta] = Object.entries(a)[0]; const link = document.createElement('a'); link.className = 'article-link'; - link.href = '/view?url=' + encodeURIComponent(url); + link.href = '/news/view?url=' + encodeURIComponent(url); const article = document.createElement('article'); const txt = meta.processed_text; diff --git a/news/static/index.html b/news/static/index.html index 61432f5..26106ad 100644 --- a/news/static/index.html +++ b/news/static/index.html @@ -134,7 +134,7 @@ the whole card is a single coherent link */ const link = document.createElement('a'); link.className = 'article-link'; - link.href = '/view?url=' + encodeURIComponent(url); + link.href = '/news/view?url=' + encodeURIComponent(url); const card = document.createElement('article'); card.className = 'article-card'; diff --git a/news/static/search.html b/news/static/search.html index 167a161..ff2be9c 100644 --- a/news/static/search.html +++ b/news/static/search.html @@ -199,7 +199,7 @@ const [url, meta] = Object.entries(a)[0]; const link = document.createElement('a'); link.className = 'article-link'; - link.href = '/view?url=' + encodeURIComponent(url); + link.href = '/news/view?url=' + encodeURIComponent(url); const article = document.createElement('article'); const txt = meta.processed_text;