From 3c8dd9632c5d56c3989210501ca5d269c6ddd913 Mon Sep 17 00:00:00 2001 From: peter_rabbit <pierrejarriges@gmail.com> Date: Tue, 26 Jan 2021 10:02:38 +0100 Subject: [PATCH] fix articles url --- config.js | 2 +- public/games/games.js | 2 +- public/main.js | 2 +- public/software-development/software-development.js | 2 +- src/home-page-components/news-articles.js | 2 +- src/pages/games/components/game-articles.js | 2 +- src/pages/software-development/components/software-articles.js | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/config.js b/config.js index 6a3353d..a6423fa 100644 --- a/config.js +++ b/config.js @@ -2,5 +2,5 @@ module.exports = { server_url: `${location.origin}${ location.origin.charAt(location.origin.length - 1) !== "/" ? "/" : "" }`, - in_construction: true, + in_construction: false, }; diff --git a/public/games/games.js b/public/games/games.js index 4423ba4..50a7e15 100644 --- a/public/games/games.js +++ b/public/games/games.js @@ -411,7 +411,7 @@ class GameArticles { } loadArticles() { - loadArticles(`${articles_url}/games`) + loadArticles(`${articles_url}games`) .then(articles => { Promise.all( articles.map(async a => { diff --git a/public/main.js b/public/main.js index 44809bb..87e129a 100644 --- a/public/main.js +++ b/public/main.js @@ -103,7 +103,7 @@ class NewsArticles { } loadArticles() { - loadArticles(`${articles_url}/news`).then(articles => { + loadArticles(`${articles_url}news`).then(articles => { this.state.articles = articles; this.state.showArticleIndex = this.state.articles.length - 1; this.refresh(); diff --git a/public/software-development/software-development.js b/public/software-development/software-development.js index 7259447..56856fe 100644 --- a/public/software-development/software-development.js +++ b/public/software-development/software-development.js @@ -400,7 +400,7 @@ class SoftwareArticles { } loadArticles() { - loadArticles(`${articles_url}/software`) + loadArticles(`${articles_url}software`) .then(articles => { this.state.articles = articles; this.refresh(); diff --git a/src/home-page-components/news-articles.js b/src/home-page-components/news-articles.js index 9ec0219..66977d4 100644 --- a/src/home-page-components/news-articles.js +++ b/src/home-page-components/news-articles.js @@ -17,7 +17,7 @@ class NewsArticles { } loadArticles() { - loadArticles(`${articles_url}/news`).then(articles => { + loadArticles(`${articles_url}news`).then(articles => { this.state.articles = articles; this.state.showArticleIndex = this.state.articles.length - 1; this.refresh(); diff --git a/src/pages/games/components/game-articles.js b/src/pages/games/components/game-articles.js index e80d8c7..db633f0 100644 --- a/src/pages/games/components/game-articles.js +++ b/src/pages/games/components/game-articles.js @@ -16,7 +16,7 @@ class GameArticles { } loadArticles() { - loadArticles(`${articles_url}/games`) + loadArticles(`${articles_url}games`) .then(articles => { Promise.all( articles.map(async a => { diff --git a/src/pages/software-development/components/software-articles.js b/src/pages/software-development/components/software-articles.js index 0d0254d..4793a2e 100644 --- a/src/pages/software-development/components/software-articles.js +++ b/src/pages/software-development/components/software-articles.js @@ -129,7 +129,7 @@ class SoftwareArticles { } loadArticles() { - loadArticles(`${articles_url}/software`) + loadArticles(`${articles_url}software`) .then(articles => { this.state.articles = articles; this.refresh(); -- GitLab