How can I get the full URL without cache interference?

nazimkeser121
Tourist
6 0 2

Hello,

I'd get page full url. I can get full url by following code.

{%- capture contentForQuerystring -%}{{ content_for_header }}{%- endcapture -%}
{%- assign pageFullUrl = contentForQuerystring | split:'"pageurl":"' | last | split:'"' | first |
replace:'\/','/' |
replace:'%20',' ' |
replace:'\u0026','&'
-%}

{{ pageFullUrl }}

 

But when I reload page with another param, I'm getting first loaded param.

For instance, first url is "https://myshop.com/pages/support?123"
In this case, I got the full url correctly.

Then second url is "https://myshop.com/pages/support?12345"
In this case, I got first url like "https://myshop.com/pages/support?123".

I think there is cache issue.

How can I solve this issue?

Best,

Nazim

Reply 1 (1)

matchupsolution
Tourist
6 0 5

Any resolution or work around?  

 

A different URL shouldn't have a previous URL cached for the URL...how will the code access the new values????