From 2cbf6c5f72b633b2f8035f406648b1f03fc0039b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Bedna=C5=99=C3=ADk?= <jan.bednarik@gmail.com>
Date: Wed, 4 Mar 2020 22:20:32 +0100
Subject: [PATCH] Change hardcoded links

---
 README.md                            | 2 +-
 src-front/components/posts/Posts.vue | 2 +-
 src-front/nuxt.config.js             | 2 +-
 src-front/pages/blog/_slug.vue       | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/README.md b/README.md
index fe085df..c80cb81 100644
--- a/README.md
+++ b/README.md
@@ -6,7 +6,7 @@
 
 - **BASE_URL** - Url, na které staticky generovaný web poběží (defaultně https://www.piratipracuji.cz). Počítá se s tím, že web poběží v rootu domény (subdomény).
 
-- **API_URL** - Url API s daty (defaultnÄ› https://redmineapi.mfnet.cz/). Je nutnĂ˝ trailing slash.
+- **API_URL** - Url API s daty (defaultnÄ› https://www.piratipracuji.cz/api/). Je nutnĂ˝ trailing slash.
 
 #### Další konfigurace
 
diff --git a/src-front/components/posts/Posts.vue b/src-front/components/posts/Posts.vue
index 7cc3120..951adf6 100755
--- a/src-front/components/posts/Posts.vue
+++ b/src-front/components/posts/Posts.vue
@@ -57,7 +57,7 @@ export default {
       meta: [
         { hid: 'og:title', property: 'og:title', content: this.posts.items[0].title },
         { hid: 'og:image', property: 'og:image', content: this.posts.items[0].thumbnail },
-        { hid: 'og:url', property: 'og:url', content: 'https://piratipracuji.mfnet.cz'+this.$nuxt.$route.path },
+        { hid: 'og:url', property: 'og:url', content: 'https://www.piratipracuji.cz'+this.$nuxt.$route.path },
       ],
     };
   },
diff --git a/src-front/nuxt.config.js b/src-front/nuxt.config.js
index 50dc1bf..6d1e7de 100755
--- a/src-front/nuxt.config.js
+++ b/src-front/nuxt.config.js
@@ -5,7 +5,7 @@ const appConfig = {
   description: 'Přehled toho nejdůležitějšího, na čem Piráti pracují nejen v Poslanecké sněmovně.',
   //apiUrl: process.env.NODE_ENV === 'development' ? 'http://127.0.0.1:8000/api/' : 'https://admin.piratipracuji.cz/api/',
   //apiUrl: 'https://admin.piratipracuji.cz/api/',
-  apiUrl: process.env.API_URL || 'https://redmineapi.mfnet.cz/',
+  apiUrl: process.env.API_URL || "https://www.piratipracuji.cz/api/",
   //apiUrl: 'https://redmineapi.mfnet.cz/',
   productionUrl: process.env.BASE_URL || 'https://www.piratipracuji.cz',
   //productionUrl: 'https://www.piratipracuji.cz',
diff --git a/src-front/pages/blog/_slug.vue b/src-front/pages/blog/_slug.vue
index 58e1286..6002f8e 100755
--- a/src-front/pages/blog/_slug.vue
+++ b/src-front/pages/blog/_slug.vue
@@ -61,7 +61,7 @@ export default {
         { hid: 'description', property: 'description', content: this.post ? this.post.description : '' },
         { hid: 'og:description', property: 'og:description', content: this.post ? this.post.description : '' },
         { hid: 'og:title', property: 'og:title', content: title },
-        { hid: 'og:url', property: 'og:url', content: 'https://piratipracuji.mfnet.cz'+this.$nuxt.$route.path },
+        { hid: 'og:url', property: 'og:url', content: 'https://www.piratipracuji.cz'+this.$nuxt.$route.path },
         ogImage,
       ],
     };
-- 
GitLab