• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 2.0 How to get a direct link for a style?

Osman

Active member
#1
Hello,

I want to get a direct link to a style, but I'm getting an error like this.

What's wrong here? Or what is the right way to do this?

Code:
https://www.yourdomain.com/misc/style?style_id=2
style.png
 

Mike

XenForo developer
Staff member
#3
As this is a link that changes what the user sees, it needs a CSRF token to confirm that the user is intentionally triggering the action themselves.

So essentially, there isn't a link to do this automatically.