Closed tao closed 2 years ago
I've been trying to figure out where the change was, these updates are not working:
v3.3.27
v3.3.26
v3.3.25
v3.3.24
v3.3.23
v3.3.22
v3.3.21
v3.3.20
3.3.19
works again and the current_uri
is back. So something must have gone wrong in v3.3.20
Thanks for the research. I can fix this on the ssg side, so I'll move this issue to there.
Bug description
I've been using
current_uri
with SSG for a few things, most importantly for my pagination system which broke on my production site when I upgraded to v3.3.It shows the
current_uri
if you're using the web browser but SSG doesn't output it.When looking at the static site from SSG it just outputs
/
for every page.So my pagination system doesn't work because it outputs
/1
instead of/podcasts/1
or/articles/2
... but I use it in a couple of other places to dynamically show content based on the current uri, like page tabs too.If I revert to Statamic v3.2 and SSG 0.9.0 it shows the current uri
/about-us
for the live website:And the static website:
How to reproduce
Here's a repo (https://github.com/tao/bug-ssg-current-uri)
php artisan serve
and visit/about-us
it'll show the current URI.php please ssg:generate
and visit/about-us
it'll show the current URI"statamic/ssg": "0.9.0"
to"statamic/ssg": "1.0.0"
and runcomposer update
v3.3
at the same time.php artisan serve
and visit/about-us
it'll show the current URI.php please ssg:generate
and visit/about-us
it'll won't show the URI anymore.Logs
No response
Environment
Installation
Fresh statamic/statamic site via CLI
Antlers Parser
regex (default)
Additional details
I'm very upset that this broke my production site...