You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@roller.apache.org by "Greg Huber (JIRA)" <ji...@apache.org> on 2009/02/24 15:14:12 UTC

[jira] Created: (ROL-1792) Hit count increments with

Hit count increments with <link rel="stylesheet" type="text/css" media="all" href="$model.weblog.stylesheet">
-------------------------------------------------------------------------------------------------------------

                 Key: ROL-1792
                 URL: https://issues.apache.org/roller/browse/ROL-1792
             Project: Roller
          Issue Type: Bug
    Affects Versions: 5.0
            Reporter: Greg Huber
            Assignee: Roller Unassigned
            Priority: Trivial


When <link rel="stylesheet" type="text/css" media="all" href="$model.weblog.stylesheet"> is included on a webpage it triggers another trip to the page servlet where it also can trigger an increment on the daily hits. Need some way of stopping this via only incrementing on weblog pages (not css):

eg: (or something similar/better as will only increment on weblog home page)

PageServlet:
...
// allow for hit counting
        if (!isSiteWide && pageRequest.isWeblogPageHit()) {
            this.processHit(weblog, request.getRequestURL().toString(), request.getHeader("referer"));
        }
...
WeblogPageRequest:
...
if (pathInfo != null && pathInfo.trim().length() > 0) {
..
} else {
// default view, weblog homepage
 weblogPageHit = true;
}
...

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.