croxton / Stash

Stash allows you to stash text and snippets of code for reuse throughout your templates.
GNU General Public License v3.0
197 stars 20 forks source link

Return parameter for unset? #40

Closed leeaston closed 11 years ago

leeaston commented 11 years ago

Can I suggest a return parameter in stash:unset. It's useful (imo) to be able link to a template with just something like {exp:stash:unset name="recently-viewed"} in it. The return parameter would let me unset a stash name manually and then instantaneously return to the page I clicked an unset link on, or else where.

Best wishes Lee

croxton commented 11 years ago

Using a {redirect=""} below the stash tag would do the same thing, I believe.