fix: item page deep link route. (#505)

This commit is contained in:
Jojo Feng
2025-01-20 21:55:05 -08:00
committed by GitHub
parent de1eac31da
commit 872c4359d4

View File

@ -23,7 +23,7 @@ struct StoryWidgetView : View {
.containerBackground(for: .widget) { .containerBackground(for: .widget) {
Color(UIColor.secondarySystemBackground) Color(UIColor.secondarySystemBackground)
} }
.widgetURL(URL(string: "\(story.id)")) .widgetURL(URL(string: "/item/\(story.id)"))
default: default:
HStack { HStack {
VStack { VStack {
@ -62,7 +62,7 @@ struct StoryWidgetView : View {
.containerBackground(for: .widget) { .containerBackground(for: .widget) {
Color(UIColor.secondarySystemBackground) Color(UIColor.secondarySystemBackground)
} }
.widgetURL(URL(string: "\(story.id)")) .widgetURL(URL(string: "/item/\(story.id)"))
} }
} }
} }