Skip to main content
Topic: Redirect URL in forum? (Read 2324 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Redirect URL in forum?

My other forum has the option to create Redirect URL:

https://imgur.com/a/CyPD068

Does elkarte it?
Thanks.

Re: Redirect URL in forum?

Reply #1

Hi and welcome to elkarte!
Yes, Elkarte has this option too. Go to Admin > Forum > Boards > Modify Boards > Create new board
When you create a new board you need to select the option Redirect to a web address:
You can also do it on an existing board, but the board needs to be empty.

 

Re: Redirect URL in forum?

Reply #2

Hi Robert!
The website then opens in the same window as the forum. If all extern websites are to be opened in new windows, then you have to do this in the GenericBoards.template.php:

Search:
Code: [Select]
<a href="', $board['href'], '" id="b', $board['id'], '">', $board['name'], '</a>';

Replace with:
Code: [Select]
<a', $board['is_redirect'] ? ' target="_blank"' : '', ' href="', $board['href'], '" id="b', $board['id'], '">', $board['name'], '</a>';
ElkArte version: 1.1.8 / Theme: BeSocial / PHP 8.0

Re: Redirect URL in forum?

Reply #3

It works  :) .
Thanks.