Comments (3)
@bleutzinn can you change false
to true
on https://github.com/francodacosta/grav-plugin-page-stats/blob/master/page-stats.php#L209 and let me know if it works ?
Otherwise I have to look at it with more attention
from grav-plugin-page-stats.
It does fix the problem with links to pages but unfortunately all links to stats remain broken. That is all links with the fa-line-chart icon. For example the URL of the Top Users statistics details is http://localhost/grav/admin/page-stats/top-users
but the link is http://localhost/admin/page-stats/top-users
.
from grav-plugin-page-stats.
It appears that adding the theme variable home_url
to the start of links adds the subdirectory in which Grav is installed.
For example in https://github.com/francodacosta/grav-plugin-page-stats/blob/master/themes/admin/templates/widgets/recently-viewed-pages.html.twig#L54 changing
href="{{ pageStats.urls.pageDetails}}
to
href="{{ home_url }}{{ pageStats.urls.pageDetails}}
.
The documentation) states that the home_url variable takes the currently active language into account. So I tested using an active language and it works okay.
I did not test with Grav being in the document root.
from grav-plugin-page-stats.
Related Issues (20)
- Platform and browser switched in stats page. HOT 3
- Request: filter for requests to ignore HOT 4
- bug: page views widget not shown on dashboard if url does not contain /dashboard HOT 1
- I have an error when visit a page HOT 10
- Page load times increase to several seconds once plugin active HOT 1
- Feature Request: show URL instead of page name HOT 2
- Feature Request: Time Zone selection HOT 1
- Feature Request: Time Filter on Most Viewed Pages HOT 1
- Feature Request: Configure Ignored Bots HOT 3
- Docs: Add privacy information in regards to EU regulatories / GDPR HOT 2
- ERROR PageStats plugin : Undefined index: HTTP_USER_AGENT HOT 1
- wrong version number in blueprints.yaml HOT 1
- bug display last 1000 pages... HOT 2
- redirects not counted
- Does not work when the site is not installed at root
- Error: Class "PDO" not found HOT 2
- Error log
- Support IPv6 geolocation
- Feature Request: Allow to ignore missing resources (404) in statistics
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grav-plugin-page-stats.