Explorar o código

Use page permalink instead of link with path

Sotaro KARASAWA %!s(int64=9) %!d(string=hai) anos
pai
achega
d47e88af36
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/util/slack.js

+ 1 - 1
lib/util/slack.js

@@ -160,7 +160,7 @@ module.exports = function(crowi) {
       author_link: url + '/user/' + user.username,
       author_icon: user.image,
       title: page.path,
-      title_link: url + page.path,
+      title_link: url + '/' + page._id,
       text: body,
       mrkdwn_in: ["text"],
     };