Bug #16529
closedexternalUrl needs double click if not from baseURL domain
0%
Description
If you click on a externalURL type page entry in your FE, you'll have to click twice to get to the external Page, the first click opens an empty page.
This only happens, if you have more than one domain record for your site and if you try to follow the external Link from a page with a domain different from that set in config.baseURL
example:
config.baseURL = domainA.tld
current Page: domainB.tld/bar.html, click on "foo" link -> empty page, now domainA.tld/foo.html, click on "foo" again -> external page
current Page: domainA.tld/bar.html, click on "foo" -> external page
may be checked here:
http://www.aqs.rlp.de, click on "Zugänge für Schulen" in the right menu -> you'll have to click twice to get out
http://aqs.rlp.de, click on the same link -> get out at once
"aqs.rlp.de" is set as baseURL, "www.aqs.rlp.de" another domain record
(issue imported from #M4158)
Updated by Andreas Wolf about 18 years ago
As far as I see, the problem may easily be solved by using a RewriteRule to redirect all requests for www.aqs.rlp.de to aqs.rlp.de. This requires the Apache webserver.
I'm not 100% sure, but I think the rule must look like this:
RewriteCond %{HTTP_HOST} !^aqs.rlp.de [NC]
RewriteRule ^/(.*) http://aqs.rlp.de/$1 [L,R]
(taken from http://httpd.apache.org/docs/2.0/misc/rewriteguide.html and slightly modified)
Updated by Axel Jindra about 18 years ago
Though a RewriteRule may be a workaround for those using Apache it's IMHO not the way TYPO3 should handle externalURL jumps.
Updated by Andreas Wolf about 18 years ago
You are right, but this is a quick-and-dirty solution to fix your problem.
I will probably have a look at this later on, or tomorrow.
Updated by Christian Kuhn over 15 years ago
Resolved, unable to reproduce.
Please reopen if this issue still exists in current versions.