<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -9,7 +9,7 @@ Request information:
 &lt;% if @user_name &amp;&amp; @user_email -%&gt;
   * User: &lt;%= @user_name %&gt; &lt;&lt;%= @user_email %&gt;&gt;
 &lt;% end -%&gt;
-  * URL: &lt;%= request.protocol %&gt;&lt;%= @host %&gt;&lt;%= request.request_uri %&gt;
+  * URL: &lt;%= request.protocol %&gt;&lt;%= request.host_with_port %&gt;&lt;%= request.request_uri %&gt;
   * Parameters: &lt;%= request.parameters.inspect %&gt;
   * Rails root: &lt;%= @rails_root %&gt;
   * Hostname: &lt;%= @exception_hostname %&gt;</diff>
      <filename>app/views/exception_handler/exception_template.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -34,6 +34,13 @@ class ReportsExceptionsTest &lt; Test::Unit::TestCase
     assert ActionController::Base.respond_to?(:saves_exceptions), 'ActionController::Base should respond to :saves_exceptions'
   end
 
+  def test_saves_exceptions_with_URL
+    TestController.saves_exceptions(:hostname=&gt;'foo', :exceptions_dir=&gt;EXCEPTIONS_DIR)
+    get :do_raise, :ex=&gt;'Exception', :msg=&gt;'test exception'
+    lines = read_file(Exception).join
+    assert_match 'URL: http://test.host/raise?ex=Exception&amp;msg=test+exception', lines, &quot;URL should be emitted&quot;
+  end
+
   def test_saves_exceptions_with_hostname
     TestController.saves_exceptions(:hostname=&gt;'foo', :exceptions_dir=&gt;EXCEPTIONS_DIR)
     get :do_raise, :ex=&gt;'Exception', :msg=&gt;'test exception'
@@ -96,7 +103,6 @@ class ReportsExceptionsTest &lt; Test::Unit::TestCase
   end
 
 
-
 private
 
   def read_file(name)</diff>
      <filename>test/reports_exceptions_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>fbdf83dc5bafeddd307e9ee5cd3c483cc8fd7da3</id>
    </parent>
  </parents>
  <author>
    <name>Scott Steadman</name>
    <email>ss@stdmn.com</email>
  </author>
  <url>http://github.com/ss/exception_reporter/commit/1c7a2d253dc8e35cf9a73bb160d1ea751a061f1a</url>
  <id>1c7a2d253dc8e35cf9a73bb160d1ea751a061f1a</id>
  <committed-date>2008-09-08T13:51:00-07:00</committed-date>
  <authored-date>2008-09-08T13:51:00-07:00</authored-date>
  <message>Fixed bug in template.

Template references request.host_with_port rather than @host.</message>
  <tree>b28f11b37e8504af8d97547e364250091df74d61</tree>
  <committer>
    <name>Scott Steadman</name>
    <email>ss@stdmn.com</email>
  </committer>
</commit>
