diff --git a/plugins/bc-admin-third/templates/plugin/BcBlog/Admin/BlogPosts/edit.php b/plugins/bc-admin-third/templates/plugin/BcBlog/Admin/BlogPosts/edit.php index ded1691053..85ed09f712 100644 --- a/plugins/bc-admin-third/templates/plugin/BcBlog/Admin/BlogPosts/edit.php +++ b/plugins/bc-admin-third/templates/plugin/BcBlog/Admin/BlogPosts/edit.php @@ -36,10 +36,10 @@ BcAdminForm->control('no', ['type' => 'hidden']) ?> - - + BcAdminForm->button('', [ 'id' => 'BtnCopyUrl', diff --git a/plugins/bc-blog/src/Service/BlogPostsService.php b/plugins/bc-blog/src/Service/BlogPostsService.php index 65a3d979fe..750f422029 100755 --- a/plugins/bc-blog/src/Service/BlogPostsService.php +++ b/plugins/bc-blog/src/Service/BlogPostsService.php @@ -974,7 +974,7 @@ public function getUrl(Content $content, BlogPost $post, $full) /** @var ContentsServiceInterface $contentsService */ $contentsService = $this->getService(ContentsServiceInterface::class); $contentUrl = $contentsService->getUrl(rawurldecode($content->url), $full, !empty($site->use_subdomain), false); - $no = ($post->name)?: $post->no; + $no = ($post->name)? rawurlencode($post->name) : $post->no; return $contentUrl . 'archives/' . $no; }