View Issue Details

IDProjectCategoryView StatusLast Update
0007116mantisbtbugtrackerpublic2006-09-12 00:54
Reportergce Assigned Tovboctor  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionduplicate 
Product Version1.0.3 
Summary0007116: Redirection after editing of bugnote fails
Description

When I edit a bugnote, click "Update information" and then just wait (not click on "Click here to proceed"), then I am redirected to the invalid URL
http://.../view.php?id=...%23bugnotes
instead of the valid URL
http://.../view.php?id=...#bugnotes

This is very similar to 0007088, which seems to be corrected only in Mantis 1.1.0,
but I think the error is severe enough, to be corrected in the 1.0.x line as well.

TagsNo tags attached.

Relationships

duplicate of 0007051 closedthraxisp Fix for 0006869 / 0007034 removes quoted "?" from arguments 
related to 0007282 closedryandesign invalid redirect url returned from string_sanitize_url when incuding # anchor 

Activities

chillax

chillax

2006-05-19 13:17

developer   ~0012880

Last edited: 2006-05-19 18:25

Having similar problems.
A way to avoid this until a fix is available is by doing the following:

CHANGE FILE:
./bugnote_update.php

REPLACE:
print_successful_redirect( string_get_bug_view_url( $t_bug_id ) . '#bugnotes' );

WITH:

print_successful_redirect( string_get_bug_view_url( $t_bug_id ) . '#bugnotes' );

print_successful_redirect( string_get_bug_view_url( $t_bug_id ));

This will leave the code that should take you back to the notes section after editing a note in place but commented out. You will be taken to the top of the bug page after editing a note instead of to an error page, which is infinitely more useful in the short term.