What would be the best way to make a category "redirecting" people to another website?

AI-generated summary

The discussion revolves around creating a category that redirects users to another website. Canapin is reorganizing an international forum and wants to add a French category that links to a separate French Discourse instance.

Stephen suggests a header link, but Canapin prefers not to draw attention to it, as most posts are in English.

michaeld proposes creating a French category and using a theme component to intercept requests and redirect to the French Discourse. Canapin attempts this but encounters issues with the redirect.

Ultimately, Canapin chooses a simpler approach, using the “about the category” auto-generated topic to feature a link to the French Discourse. They use a rails command to add the link, finding this solution satisfactory.

Hi!

Context: I’m working on an international forum which have a few subcategories for some languages and we’re reorganizing it all.

We currently have categories such as:

Since only German is active, this this the only subcategory we’ll be keeping.
However, we’d like to add French and make this category somehow redirect to a French other Discourse instance.

So I’m not sure what’s the best way to do it.

Make a French subcategory with only one topic containing a link to the French Discourse?
It makes a lot of clicks to go to the French Discourse. Category → Subcategory → Topic → Link

Make the category link directly open the French Discourse in a new tab? Is such a thing possible?

Any other idea? :thinking:

Why aren’t you offering the French site via a header link, or similar?

We don’t specifically want to put such emphasis on any other language than English. 99% of the posts are written in English. Such a link in the header or somewhere always visible will be of no interest to the vast majority of users.

But we do want to have a link somewhere to let French speakers that an active French forum exists, and since we already have language-related categories, I think letting people know about the French forum through them would be the most convenient place.

Create a French category and make a simple theme component that intercepts any request to it (using api.onPageChange() or similar) and redirects to the French Discourse instead.

Don’t know how to do such a thing, but I’ll have a look at it :slight_smile:

edit : I’ll tried this:

    api.onPageChange((url) => {
        if (url === "/c/site-feedback/2"){
            window.location.href = "https://forum.monocycle.info";
        }
    });

The result is not right for the user since the script is executed where we’re on this category.
So, the forum first loads the category page, and then redirect the user to the other website.

And then if we go back to the previous page in our browser, it goes back to the category page which redirects again automatically to the new url. It’s irritating.

Maybe the new url should open in a new tab when we click on the category in the category selector, but not let the category page opens. I’m not sure though, maybe there are better solutions. I need to think about it more.

Hey guys, I finally chose the simple way.

I just use the “about the French category” auto-generated topic:

I renamed the auto-generated topic and added the featured link with a rails command.

I think it will do the job!