Announcement

Collapse
No announcement yet.

s.http_referer not displaying referer url

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    s.http_referer not displaying referer url

    I am trying to grab the referer url by using s.http_referer on the PROD page so I can send the customer back to the exact category page they came from including the page number and sort order.

    I tried using toolkit function

    <mvt:item name="toolkit" param="vassign|camefrom|http_referer" />

    &mvte:global:camefrom; - this displays nothing

    so tried using &mvt:system:http_referer; - displays nothing

    What am I missing?

    Thanks
    Keyboard Not Found..... Press F1 to continue

    #2
    System variable cannot usually be used directly. You would have to assign it to a global or local variable.
    Code:
    <mvt:assign name="g.http_referer" value="s.http_referer" />
    Matt Zimmermann

    Miva Web Developer
    Alchemy Web Development
    https://www.alchemywebdev.com
    Site Development - Maintenance - Consultation

    Miva Certified Developer
    Miva Professional Developer

    https://www.dev4web.net | Twitter

    Comment


      #3
      Also, no reason to use Toolkit for simple assigns (or other functions that can easily be done in native SMT code) as those function will be slower. Here are just a few of them:

      https://docs.miva.com/template-langu...ement-examples

      Bruce Golub
      Phosphor Media - "Your Success is our Business"

      Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
      phosphormedia.com

      Comment

      Working...
      X