This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 1171 - leading slash should be removed in valid.tmpl
Summary: leading slash should be removed in valid.tmpl
Status: CLOSED FIXED
Alias: None
Product: Validator
Classification: Unclassified
Component: check (show other bugs)
Version: 0.7.0
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Terje Bless
QA Contact: qa-dev tracking
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-18 16:13 UTC by victory
Modified: 2005-03-19 15:03 UTC (History)
0 users

See Also:


Attachments

Description victory 2005-03-18 16:13:59 UTC
in validator.conf, 
# The "Home Page" for the service.  Make sure this ends with a slash.
Home Page = http://validator.w3.org/

and in templates/en_US/valid.tmpl line 40
    &lt;a href="<TMPL_VAR NAME="cfg_home_page"
ESCAPE="HTML">/check/referer"&gt;&lt;img

these produce wrong source below
<pre>  &lt;p&gt;
    &lt;a href="http://validator.w3.org//check/referer"&gt;&lt;img
        src="http://www.w3.org/Icons/valid-xhtml10"
        alt="Valid XHTML 1.0 Strict" height="31" width="88"/&gt;&lt;/a&gt;
  &lt;/p&gt;
  </pre>
Comment 1 Olivier Thereaux 2005-03-19 14:29:13 UTC
Agreed. 

Since validator.conf specifically calls for a trailing slash, it seems reasonable to remove the slash before 
check. Also verified that cfg_home_page is not used in other templates.

Fixed in CVS:
http://dev.w3.org/cvsweb/validator/share/templates/en_US/valid.tmpl.diff?r1=1.9&r2=1.10

Thanks for the report.
Comment 2 victory 2005-03-19 14:57:21 UTC
thanks, verified :-)