roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Greg Huber (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (ROL-1792) Hit count increments with <link rel="stylesheet" type="text/css" media="all" href="$model.weblog.stylesheet">
Date Fri, 04 Jul 2014 06:54:35 GMT

     [ https://issues.apache.org/jira/browse/ROL-1792?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Greg Huber resolved ROL-1792.
-----------------------------

       Resolution: Fixed
    Fix Version/s: 5.1

> Hit count increments with <link rel="stylesheet" type="text/css" media="all" href="$model.weblog.stylesheet">
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: ROL-1792
>                 URL: https://issues.apache.org/jira/browse/ROL-1792
>             Project: Apache Roller
>          Issue Type: Bug
>          Components: Pings and Trackbacks
>    Affects Versions: 5.0
>            Reporter: Greg Huber
>            Assignee: Greg Huber
>            Priority: Trivial
>             Fix For: 5.1
>
>
> 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 was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message