diff options
author | Yorhel <git@yorhel.nl> | 2019-12-01 13:59:06 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2019-12-01 13:59:09 +0100 |
commit | e69504ae68f4d37bae69919aaee484aee3c0aa84 (patch) | |
tree | 3fb33117916cb7c97d376e70662c1a371cd4ac9f /lib/VNDB/Handler/Discussions.pm | |
parent | 165b62acc991cbf30cb721af27b04a066dbc9413 (diff) |
Discussions: Do not highlight post when nagivating to the "last post"
That behavior was more distracting, especially when the intention of the
link isn't to link to that post in particular, but just to the more
recent part of the thread.
As an additional advantage, this doesn't rely on the t#.# redirect
anymore, this making browsing the forums slightly faster.
Diffstat (limited to 'lib/VNDB/Handler/Discussions.pm')
-rw-r--r-- | lib/VNDB/Handler/Discussions.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNDB/Handler/Discussions.pm b/lib/VNDB/Handler/Discussions.pm index aa15f360..b10e7aaf 100644 --- a/lib/VNDB/Handler/Discussions.pm +++ b/lib/VNDB/Handler/Discussions.pm @@ -159,7 +159,7 @@ sub edit { $self->dbPostEdit($tid, $num, %post) if $num; $nnum = $self->dbPostAdd($ntid, %post) if !$num; - return $self->resRedirect("/t$ntid".($nnum > 25 ? '/'.ceil($nnum/25) : '').'#'.$nnum, 'post'); + return $self->resRedirect(VNWeb::Discussions::Lib::post_url($ntid, $nnum, 'last'), 'post'); } } |