Skip to content

Commit

Permalink
fix(ext): Fix can not redirect to latest thread on forum card
Browse files Browse the repository at this point in the history
  • Loading branch information
realth000 committed Dec 24, 2023
1 parent d36660e commit 50af23a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- 修复帖子页面加载数据报错。
- 修复论坛页面跳页后子论坛标签页内容变空的问题。
- 修复论坛页面在子版块标签页内无法跳页的问题。
- 修复论坛卡片上的最新帖子无法跳转的问题。

## [0.2.0] - 2023-12-22

Expand Down
7 changes: 7 additions & 0 deletions lib/extensions/string.dart
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,13 @@ extension ParseUrl on String {
);
}

if (mod == 'redirect' && queryParameters['tid'] != null) {
return RecognizedRoute(
ScreenPaths.thread,
pathParameters: {'tid': "${queryParameters['tid']}"},
);
}

return null;
}

Expand Down

0 comments on commit 50af23a

Please sign in to comment.