diff --git a/lib/services/app_home_widget/home_widget_repository.dart b/lib/services/app_home_widget/home_widget_repository.dart index e183db2..092fc81 100644 --- a/lib/services/app_home_widget/home_widget_repository.dart +++ b/lib/services/app_home_widget/home_widget_repository.dart @@ -530,23 +530,23 @@ class HomeWidgetRepository { } else if (localData.id != null && localData.id.toString().isNotEmpty) { String url = ""; - // 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. + // All three apps now live on app.didvan.com (the Next.js + // frontend). The old subdomain URLs (trend.didvan.app, …) + // are obsolete. The Next.js routes are a single `[id]` + // segment — no title slug — so we only append the id. switch (localData.type) { case "startup": url = - "https://startup.didvan.app/startup/${localData.id}?accessToken=${RequestService.token}"; + "https://app.didvan.com/startup/${localData.id}?accessToken=${RequestService.token}"; break; case "technology": url = - "https://tech.didvan.app/technology/${localData.id}?accessToken=${RequestService.token}"; + "https://app.didvan.com/technology/${localData.id}?accessToken=${RequestService.token}"; break; case "trend": url = - "https://trend.didvan.app/trend/${localData.id}?accessToken=${RequestService.token}"; + "https://app.didvan.com/trend/${localData.id}?accessToken=${RequestService.token}"; break; }