Skip to content

Commit df685c7

Browse files
committed
포스트 경로에서 슬래시 제거
1 parent 07358d6 commit df685c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/pages/post_list_page.dart

Lines changed: 2 additions & 2 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 = '/post/${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-
'/post/${Uri.encodeComponent(d.meta.slug)}';
267+
'post/${Uri.encodeComponent(d.meta.slug)}';
268268
// 주소 표시줄을 포스트 경로로 즉시 갱신
269269
web.window.history
270270
.pushState(null, d.meta.title, postPath);

0 commit comments

Comments
 (0)