I
I
IsaevDev2016-05-16 21:07:23
PHP
IsaevDev, 2016-05-16 21:07:23

How to open every new redirect in a new tab?

View redirect task

<a href="http://myhost.ru/go/?url=https%3A%2F%2Fyandex.ru" target="_blanc">yandex</a>
seemed trivial to me until I tried to open several links from such a redirect page.
It turned out that they all open in one new tab. That is, if I opened yandex, then returned and opened google, from yandex it will be replaced by google.
At the same time, if you go to an external resource several times from, say, Vkontakte, even using the same link, a new tab will open each time. Moreover, the browser focus will be set on the newly opened tab.
I'm assuming it's the headlines?
Redirecting to php:
header( 'Location: ' . $url );
Various response codes (301, 302...) do not give any result
How can I organize that each transition to an external redirect opens in a new tab?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
IceJOKER, 2016-05-16
@IsaevDev

target="_ blank "

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question