From a4845dba293ab216e341b12417c6e4fc34bd33f6 Mon Sep 17 00:00:00 2001 From: Nils Reichardt Date: Thu, 29 Feb 2024 10:50:47 +0100 Subject: [PATCH] Fix opening website sub routes using the URL (#1326) You couldn't call "https://sharezone.net/imprint" but when you opened "https://sharezone.net" and clicked the "Imprint" button, you could navigate to "https://sharezone.net/imprint". The issue was the missing `` tag in `index.html`. I added it by deleting the old `index.html` and re-create it by running `flutter create .`. --- .github/workflows/unsafe_website_ci.yml | 3 +- .github/workflows/website_cd.yml | 3 +- website/.metadata | 12 +-- website/web/index.html | 106 +++++++++++++++--------- 4 files changed, 75 insertions(+), 49 deletions(-) diff --git a/.github/workflows/unsafe_website_ci.yml b/.github/workflows/unsafe_website_ci.yml index b222365ee..5744734c4 100644 --- a/.github/workflows/unsafe_website_ci.yml +++ b/.github/workflows/unsafe_website_ci.yml @@ -155,7 +155,8 @@ jobs: working-directory: website run: | flutter build web \ - --web-renderer canvaskit + --web-renderer canvaskit \ + --pwa-strategy none - name: Deploy to Firebase Hosting (sharezone-debug) uses: FirebaseExtended/action-hosting-deploy@120e124148ab7016bec2374e5050f15051255ba2 diff --git a/.github/workflows/website_cd.yml b/.github/workflows/website_cd.yml index 482c1f28d..8ab5afa89 100644 --- a/.github/workflows/website_cd.yml +++ b/.github/workflows/website_cd.yml @@ -58,7 +58,8 @@ jobs: # buggy. flutter build web \ --web-renderer canvaskit \ - --dart-define=FLAVOR=${{ matrix.environment.flavor }} + --dart-define=FLAVOR=${{ matrix.environment.flavor }} \ + --pwa-strategy none - uses: FirebaseExtended/action-hosting-deploy@v0 with: diff --git a/website/.metadata b/website/.metadata index 13e635719..75e6ed494 100644 --- a/website/.metadata +++ b/website/.metadata @@ -4,7 +4,7 @@ # This file should be version controlled and should not be manually edited. version: - revision: "78666c8dc57e9f7548ca9f8dd0740fbf0c658dc9" + revision: "abb292a07e20d696c4568099f918f6c5f330e6b0" channel: "stable" project_type: app @@ -13,11 +13,11 @@ project_type: app migration: platforms: - platform: root - create_revision: 78666c8dc57e9f7548ca9f8dd0740fbf0c658dc9 - base_revision: 78666c8dc57e9f7548ca9f8dd0740fbf0c658dc9 - - platform: macos - create_revision: 78666c8dc57e9f7548ca9f8dd0740fbf0c658dc9 - base_revision: 78666c8dc57e9f7548ca9f8dd0740fbf0c658dc9 + create_revision: abb292a07e20d696c4568099f918f6c5f330e6b0 + base_revision: abb292a07e20d696c4568099f918f6c5f330e6b0 + - platform: web + create_revision: abb292a07e20d696c4568099f918f6c5f330e6b0 + base_revision: abb292a07e20d696c4568099f918f6c5f330e6b0 # User provided section diff --git a/website/web/index.html b/website/web/index.html index ce0c6147d..449d582c7 100644 --- a/website/web/index.html +++ b/website/web/index.html @@ -1,6 +1,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - Startseite - Sharezone - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Startseite - Sharezone + + + + + + + -
-
-
-
- +
+
+
+
+ + \ No newline at end of file