Forum
Page URL as a variable
I'm trying to get the full page URL as a variable but I'm struggling. I'm using URL patterns, but I can only get the physical pages URL not the URL in the browser bar.
I get this:
https://localhost/watches/brand/group-list/group-items/watch-item
When I want to get
https://localhost/watches/chanel/collections/j12-black/j12-classic-black-h1625
My Pattern is:
watches/[slug:brand]/collections/[slug:group]/[slug:watches]
How are you retrieving the URL currently?
At the moment I've got
Although it outputs to the screen, but that's another issue I can fix later.
What does this output?
That outputs
Hmm, ok. Something else to try:
HA! Nailed it :)
I'll add
That should than get me the full URL, thanks so much!
I'll try and figure out a better way to handle this in the next release!