switch trend/tech/startup URLs to app.didvan.com (subdomains were obsolete)
This commit is contained in:
parent
ce42f91a31
commit
d5a6007f7d
|
|
@ -530,23 +530,23 @@ class HomeWidgetRepository {
|
||||||
} else if (localData.id != null &&
|
} else if (localData.id != null &&
|
||||||
localData.id.toString().isNotEmpty) {
|
localData.id.toString().isNotEmpty) {
|
||||||
String url = "";
|
String url = "";
|
||||||
// Note: previously these URLs appended `/$title` as a slug,
|
// All three apps now live on app.didvan.com (the Next.js
|
||||||
// but the Next.js trend/tech pages only have a single
|
// frontend). The old subdomain URLs (trend.didvan.app, …)
|
||||||
// dynamic `[id]` segment — adding a second segment makes
|
// are obsolete. The Next.js routes are a single `[id]`
|
||||||
// the page 404. URLs are now built with id only.
|
// segment — no title slug — so we only append the id.
|
||||||
|
|
||||||
switch (localData.type) {
|
switch (localData.type) {
|
||||||
case "startup":
|
case "startup":
|
||||||
url =
|
url =
|
||||||
"https://startup.didvan.app/startup/${localData.id}?accessToken=${RequestService.token}";
|
"https://app.didvan.com/startup/${localData.id}?accessToken=${RequestService.token}";
|
||||||
break;
|
break;
|
||||||
case "technology":
|
case "technology":
|
||||||
url =
|
url =
|
||||||
"https://tech.didvan.app/technology/${localData.id}?accessToken=${RequestService.token}";
|
"https://app.didvan.com/technology/${localData.id}?accessToken=${RequestService.token}";
|
||||||
break;
|
break;
|
||||||
case "trend":
|
case "trend":
|
||||||
url =
|
url =
|
||||||
"https://trend.didvan.app/trend/${localData.id}?accessToken=${RequestService.token}";
|
"https://app.didvan.com/trend/${localData.id}?accessToken=${RequestService.token}";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue