Add a / to foolfukka path redirection.

That'll avoid reloading a page when clicking on `No.` to highlight a post.
This commit is contained in:
Nicolas Stepien 2012-12-15 15:54:49 +01:00
parent 5dd219118d
commit 763311f7dd
2 changed files with 5 additions and 0 deletions

View File

@ -4899,6 +4899,9 @@
postID = postID.match(/\d+/)[0];
}
path = threadID ? "" + board + "/thread/" + threadID : "" + board + "/post/" + postID;
if (archiver === 'foolfuuka') {
path += '/';
}
if (threadID && postID) {
path += archiver === 'foolfuuka' ? "#" + postID : "#p" + postID;
}

View File

@ -3988,6 +3988,8 @@ Redirect =
"#{board}/thread/#{threadID}"
else
"#{board}/post/#{postID}"
if archiver is 'foolfuuka'
path += '/'
if threadID and postID
path +=
if archiver is 'foolfuuka'