Index: trunk/fswiki/lib/Wiki.pm =================================================================== --- trunk/fswiki/lib/Wiki.pm (revision 47) +++ trunk/fswiki/lib/Wiki.pm (working copy) @@ -1198,7 +1198,12 @@ sub create_page_url { my $self = shift; my $page = shift; - return $self->create_url({page=>$page}); + my $artno = shift; + my $url = $self->create_url({page=>$page}); + if (defined $artno && $artno ne '') { + $url .= '#p'.int($artno); + } + return $url; } #============================================================================== @@ -1482,7 +1487,8 @@ sub redirect { my $self = shift; my $page = shift; - $self->redirectURL($self->create_page_url($page)); + my $artno = shift; + $self->redirectURL($self->create_page_url($page,$artno)); } #============================================================================== Index: trunk/fswiki/plugin/core/EditPage.pm =================================================================== --- trunk/fswiki/plugin/core/EditPage.pm (revision 47) +++ trunk/fswiki/plugin/core/EditPage.pm (working copy) @@ -68,7 +68,7 @@ $wiki->save_page($pagename,$save_content,$sage); if($content ne ""){ - $wiki->redirect($pagename); + $wiki->redirect($pagename,$artno); } else { if($artno eq ""){ $wiki->set_title($pagename."を削除しました");