diff --git a/htaccess.sample b/htaccess.sample index a5d2cd4e0a..9e621d9d60 100644 --- a/htaccess.sample +++ b/htaccess.sample @@ -25,6 +25,7 @@ RewriteRule ^settings/avatar$ index.php?action=avatar [L,QSA] RewriteRule ^settings/password$ index.php?action=password [L,QSA] RewriteRule ^settings/profile$ index.php?action=profilesettings [L,QSA] RewriteRule ^settings/openid$ index.php?action=openidsettings [L,QSA] +RewriteRule ^settings/im$ index.php?action=imsettings [L,QSA] RewriteRule ^notice/new$ index.php?action=newnotice [L,QSA] RewriteRule ^notice/(\d+)$ index.php?action=shownotice¬ice=$1 [L,QSA] diff --git a/lib/util.php b/lib/util.php index e3c00b31d9..e50582d1a9 100644 --- a/lib/util.php +++ b/lib/util.php @@ -695,6 +695,8 @@ function common_fancy_url($action, $args=NULL) { $path .= '/' . $args['code']; } return common_path($path); + case 'imsettings': + return common_path('settings/im'); default: return common_simple_url($action, $args); }