<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -13,6 +13,7 @@ Changes in 5.0.3-stable
 - Added 3rd-party services section to site settings form.
 - Added reCaptcha.net support to saf.MailForm.Security.
 - Improved the audio embedding via SiteStreamer.
+- Internal page redirects fully obey the Site/remove_index setting.
 
 Changes in 5.0.2-stable
 </diff>
      <filename>install/changes.txt</filename>
    </modified>
    <modified>
      <diff>@@ -289,6 +289,9 @@ class Document {
 				return false;
 			}
 			if (! preg_match ('|^[a-zA-Z0-9]+://|', $this-&gt;external)) {
+				if (conf ('Site', 'remove_index')) {
+					$this-&gt;external = str_replace ('/index/', '/', $this-&gt;external);
+				}
 				if (strpos ($this-&gt;external, '/') === 0) {
 					if (site_secure () &amp;&amp; cgi_is_https ()) {
 						header ('Location: https://' . site_domain () . $this-&gt;external);</diff>
      <filename>saf/lib/Misc/Document.php</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>da74664ba77ba49f7db30c95a5001f3cd80342e5</id>
    </parent>
  </parents>
  <author>
    <name>John Luxford</name>
    <email>lux@www.dojolearning.lo</email>
  </author>
  <url>http://github.com/lux/sitellite/commit/256604c86292726ebc8fbd6276fe270191a11c1c</url>
  <id>256604c86292726ebc8fbd6276fe270191a11c1c</id>
  <committed-date>2009-05-21T12:10:55-07:00</committed-date>
  <authored-date>2009-05-21T12:10:55-07:00</authored-date>
  <message>Internal page redirects fully obey the Site/remove_index setting.</message>
  <tree>57c40cc14ad57ee81380073ed9a5ab7c8fd2341d</tree>
  <committer>
    <name>John Luxford</name>
    <email>lux@www.dojolearning.lo</email>
  </committer>
</commit>
