Index: config_defaults_inc.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/config_defaults_inc.php,v
retrieving revision 1.281
diff -u -r1.281 config_defaults_inc.php
--- config_defaults_inc.php	7 Aug 2005 13:42:03 -0000	1.281
+++ config_defaults_inc.php	7 Aug 2005 17:38:16 -0000
@@ -1095,6 +1095,11 @@
 	# eg. for bugnote: a link would be bugnote:98
 	$g_bugnote_link_tag			= '~';
 
+	# --- Bug view URL ---------------
+	# if you want a shorter / different bug view URL you can change this
+	# and then write some appropriate mod_rewrite rules.
+	$g_bug_view_url = 'view.php?id=%d';
+
 	# --- Bug Count Linking ----------
 	# this is the prefix to use when creating links to bug views from bug counts (eg. on the main
 	# page and the summary page).
Index: core/string_api.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/core/string_api.php,v
retrieving revision 1.75
diff -u -r1.75 string_api.php
--- core/string_api.php	7 Aug 2005 15:29:07 -0000	1.75
+++ core/string_api.php	7 Aug 2005 17:38:16 -0000
@@ -494,14 +494,14 @@
 	# return the name and GET parameters of a bug VIEW page for the given bug
 	#  account for the user preference and site override
 	function string_get_bug_view_url( $p_bug_id, $p_user_id = null ) {
-		return 'view.php?id=' . $p_bug_id;
+		return sprintf( config_get( 'bug_view_url' ), $p_bug_id );
 	}
 
 	# --------------------
 	# return the name and GET parameters of a bug VIEW page for the given bug
 	#  account for the user preference and site override
 	function string_get_bugnote_view_url( $p_bug_id, $p_bugnote_id, $p_user_id = null ) {
-		return 'view.php?id=' . $p_bug_id . '#'. $p_bugnote_id;
+		return string_get_bug_view_url( $p_bug_id, $p_user_id ) . '#'. $p_bugnote_id;
 	}
 
 	# --------------------
@@ -510,7 +510,7 @@
 	# The returned url includes the fully qualified domain, hence it is suitable to be included
 	# in emails.
 	function string_get_bugnote_view_url_with_fqdn( $p_bug_id, $p_bugnote_id, $p_user_id = null ) {
-		return config_get( 'path' ) . string_get_bug_view_url( $p_bug_id, $p_user_id ).'#'.$p_bugnote_id;
+		return config_get( 'path' ) . string_get_bugnote_view_url( $p_bug_id, $p_bugnote_id, $p_user_id );
 	}
 
 	# --------------------
