0

How can i get previous page url in Kentico 12 PE? Visitor.GetUrlReferrer() macro and document.referrer js are always empty.

I want to change my webpart variant via url of previous page. image1

1 Answers1

0

No need to use Kentico macros when you can use plain JavaScript.

window.history.previous.href

How to get the previous URL in JavaScript?

Brenden Kehren
  • 5,776
  • 15
  • 27