I am looking for a way how to retrieve current URL/path inside template? Want to inject it inside href="...." value, to redirect user back where he was on forum. Maybe there is some var or func that holds it? current_url(), {{ $current_url }}, etc ?
Two more questions from this context-
1) Did I miss some documentation where to look for all the variables and functions available for use inside templates? (so I bother you less next time)
2) Is it safe to use: <a href="{{ link('/hard/coded?q=' . $xf.uri) }}">.... from the perspective of XSS attack? (i.e. if I can trust $xf.uri as the one coming from XF and thus fully verified and sanitized/encoded/etc)
What are variables? In simple terms, variables are names which hold values. These values are stored in the database and are used in templates to evaluate and present the content and data. Using variables in templates opens up a lot of...