diff --git a/b0esche_cloud/lib/main.dart b/b0esche_cloud/lib/main.dart index 4d45645..828abb3 100644 --- a/b0esche_cloud/lib/main.dart +++ b/b0esche_cloud/lib/main.dart @@ -16,15 +16,7 @@ import 'pages/public_file_viewer.dart'; import 'theme/app_theme.dart'; import 'injection.dart'; -import 'package:flutter/foundation.dart' show kIsWeb; -import 'package:web/web.dart' as web; - final GoRouter _router = GoRouter( - initialLocation: kIsWeb - ? (web.window.location.hash.isNotEmpty - ? web.window.location.hash.substring(1) - : '/') - : '/', routes: [ GoRoute(path: '/', builder: (context, state) => const HomePage()), GoRoute( diff --git a/go_cloud/api b/go_cloud/api index f6f90b2..72a1933 100755 Binary files a/go_cloud/api and b/go_cloud/api differ diff --git a/go_cloud/internal/http/routes.go b/go_cloud/internal/http/routes.go index fba9f52..804082f 100644 --- a/go_cloud/internal/http/routes.go +++ b/go_cloud/internal/http/routes.go @@ -2795,7 +2795,7 @@ func getFileShareLinkHandler(w http.ResponseWriter, r *http.Request, db *databas scheme = "http" } host := "www.b0esche.cloud" - fullURL := fmt.Sprintf("%s://%s/#/share/%s", scheme, host, link.Token) + fullURL := fmt.Sprintf("%s://%s/share/%s", scheme, host, link.Token) w.Header().Set("Content-Type", "application/json") json.NewEncoder(w).Encode(map[string]interface{}{ @@ -2860,7 +2860,7 @@ func createFileShareLinkHandler(w http.ResponseWriter, r *http.Request, db *data scheme = "http" } host := "www.b0esche.cloud" - fullURL := fmt.Sprintf("%s://%s/#/share/%s", scheme, host, link.Token) + fullURL := fmt.Sprintf("%s://%s/share/%s", scheme, host, link.Token) w.Header().Set("Content-Type", "application/json") json.NewEncoder(w).Encode(map[string]interface{}{ @@ -3303,7 +3303,7 @@ func getUserFileShareLinkHandler(w http.ResponseWriter, r *http.Request, db *dat scheme = "http" } host := "www.b0esche.cloud" - fullURL := fmt.Sprintf("%s://%s/#/share/%s", scheme, host, link.Token) + fullURL := fmt.Sprintf("%s://%s/share/%s", scheme, host, link.Token) w.Header().Set("Content-Type", "application/json") json.NewEncoder(w).Encode(map[string]interface{}{ @@ -3365,7 +3365,7 @@ func createUserFileShareLinkHandler(w http.ResponseWriter, r *http.Request, db * scheme = "http" } host := "www.b0esche.cloud" - fullURL := fmt.Sprintf("%s://%s/#/share/%s", scheme, host, link.Token) + fullURL := fmt.Sprintf("%s://%s/share/%s", scheme, host, link.Token) w.Header().Set("Content-Type", "application/json") json.NewEncoder(w).Encode(map[string]interface{}{