Announcement

Collapse
No announcement yet.

variable that pulls the current URI

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

    variable that pulls the current URI

    I am trying to use my searchspring filters to allow customers to select a sale amount and have that "code" added at the end of whichever page they are currently on.

    (/filter:sale:10:20) is what I want to make my link add to whatever their current URI is.

    I currently am using (&mvt:urls:_self:auto;)

    which works to pull the URI however it just pulls up to the .html, and wont inlcude any current filters already in place

    Domain/Sale.html#/filter:sale:36:49

    If I also click on 20-35 % sale it should add (/filter:sale:20:35) at the end

    Domain/Sale.html#/filter:sale:36:49/filter:sale:20:35

    does anyone know of a way to do this?

    Thank you in advance

    #2
    Try this:

    <mvt:assign name="g.thisIsTheURL" value="l.settings:urls:_self:auto$'?'$s.system:arg 2"/>

    s.system:arg2 should have everything from the URL after the ?.

    Note, this is server dependant so YMMV
    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