diff --git a/lib/services/app_home_widget/home_widget_repository.dart b/lib/services/app_home_widget/home_widget_repository.dart index ff4b161..e183db2 100644 --- a/lib/services/app_home_widget/home_widget_repository.dart +++ b/lib/services/app_home_widget/home_widget_repository.dart @@ -530,7 +530,10 @@ class HomeWidgetRepository { } else if (localData.id != null && localData.id.toString().isNotEmpty) { String url = ""; - String title = localData.title?.split(" ").join("-") ?? ""; + // Note: previously these URLs appended `/$title` as a slug, + // but the Next.js trend/tech pages only have a single + // dynamic `[id]` segment — adding a second segment makes + // the page 404. URLs are now built with id only. switch (localData.type) { case "startup": @@ -539,11 +542,11 @@ class HomeWidgetRepository { break; case "technology": url = - "https://tech.didvan.app/technology/${localData.id}/$title?accessToken=${RequestService.token}"; + "https://tech.didvan.app/technology/${localData.id}?accessToken=${RequestService.token}"; break; case "trend": url = - "https://trend.didvan.app/trend/${localData.id}/$title?accessToken=${RequestService.token}"; + "https://trend.didvan.app/trend/${localData.id}?accessToken=${RequestService.token}"; break; }