Skip to content

Commit edea8eb

Browse files
committed
포스트 경로 수정:
1 parent f3233b3 commit edea8eb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/pages/post_list_page.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ class _PostListPageState extends State<PostListPage> {
8282

8383
void _copyCurrentPostUrlToClipboard() {
8484
try {
85-
final postPath = '/posts/${currentPost.meta.slug}';
85+
final postPath = '/post/${currentPost.meta.slug}';
8686
web.window.history.pushState(null, '', postPath);
8787

8888
final postUrl = web.window.location.href;
@@ -264,7 +264,7 @@ class _PostListPageState extends State<PostListPage> {
264264
trailing: const Icon(Icons.chevron_right),
265265
onTap: () {
266266
final postPath =
267-
'/posts/${Uri.encodeComponent(d.meta.slug)}';
267+
'/post/${Uri.encodeComponent(d.meta.slug)}';
268268
// 주소 표시줄을 포스트 경로로 즉시 갱신
269269
web.window.history
270270
.pushState(null, d.meta.title, postPath);
@@ -308,7 +308,7 @@ class _PostListPageState extends State<PostListPage> {
308308
leading: BackButton(
309309
onPressed: () => setState(() {
310310
isShowPostDetail = false;
311-
web.window.history.pushState(null, 'Posts', '/');
311+
web.window.history.pushState(null, 'Post', '/');
312312
}),
313313
),
314314
actions: [

0 commit comments

Comments
 (0)