XF 2.2 Redirection in a Forum Post?

Steve Freides

Active member
I would like to create a forum post with a title like "Click Here To Go There" and that functions like a redirector post.

I'm imagine I would need something like

<meta data-fr-http-equiv="Refresh" content="0; url='https://<my_forum_home/forums/there/'" />

1. Is this possible?

2. If so, please give a sample syntax since the example I gave doesn't work.

Thanks in advance for your replies.

My thought wasn't to put the HTML in the title, but rather to have people see the title, click on the message, and instead of the post itself appearing on the screen next, it would redirect. Thus my title would be plain English and the HTML would be in the post itself.


Thank you.

Edit the PAGE_CONTAINER template and add the code before the closing </head> tag.

<xf:if is="$xf.uri == '/xf_test/threads/thread-title.123/'">
    <meta http-equiv="refresh" content="0;url='https://domain.com'" />

Edit the URI and domain to suit.
Why not use a notice for the same thing?
Please explain what a notice is in this context.

By way of background, at the request of the head of the company, we now have almost all traffic in a single section called Discussion under a single, parent category called Welcome, and use Prefix, which we have relabelled as "Topic," to differentiate the general subject matter of threads.

We still have a few other forums, currently collected under an Other category, that we want people to be able to find while they're in Discussion and without having to go up a level and then down into Other. We want to take up as little screen real estate as possible for this, hence the thought of a sticky post to do the job.


I agree.

It's not an approach I would take but I have learned that if I question the way people want to do something, some other people (not the OP) get offended and criticise me for it.
I have learned that if I question the way people want to do something, some other people (not the OP) get offended and criticise me for it.
That's what you get the big money for, @Brogan, taking all that criticism. :)

Folks, very enlightening, but some of this is over my head, and I have absolutely no idea what a Notice is so please explain that.

I assumed the desire was for it to be automatic when opening a specific thread.
Yes, but the reason for wanting to do this in a thread is a thread takes up just one line of screen real estate. When I create my Other as a child of my main forum Discussion, it takes up a lot of space, shows Other's child forums, and the like, none of which I want. See attached screenshot for what I'm trying to avoid.

I am completely open to suggestions about the best way to do this.

-S-Screen Shot 2021-11-29 at 9.26.48 AM.webp
A link forum would work best for your use case but it would take up more space than a thread.

It would be above the thread list as in your screenshot.

You could style it to take up less room though.
Top Bottom