[TYPO3-english] Strange target="_blank" in HMENU

Loek Hilgersom loek at netcoop.nl
Thu Oct 9 14:01:14 CEST 2014


Hi all,

I have a strange issue with a straight forward HMENU:

The root page (uid=2) adds an unintended target="_blank" to the link. The page 
is set as root page in page properties, and it contains a domain record.

Weird is that the link doesn't show <a href="/" ... but it adds the full domain 
name, which it doesn't do for the other pages. I suspect it takes the full url 
because the url can be empty, and than considers the link to be external...

The other weird thing is that the issue only occurs on the production server, 
not on the test server nor in my local dev-setup, which makes it hard to debug. 
The differences between the systems are minimal (using automated deployment), 
the only relevant differences I can think of are the baseUrl and the domain record.

I tried adding NO.altTarget = "_self", but that only adds this target to the 
other links, it doesn't overrule the target of the first item.

Finally, I added a config.absRefPrefix = /
That resolved the issue and luckily didn't break anything (yet, as far as I've 
tested so far). But the issue remains really weird. Any ideas?

Thanks,
Loek


To be complete, here's the menu, nothing special really:

10 = HMENU
10 {
	special = list
	special.value = 2,201,62,20,36
	1 = TMENU
	1 {
		NO {
			allWrap = <li>|</li>
			// Custom wrap for first item only
			stdWrap.wrap = <span>|</span>&nbsp; || |*||*|
		}
		CUR < .NO
		CUR = 1
		CUR.ATagParams = class="active"
		// All items show active in current state, all except
  		// home show active in active state (subpage selected)
		ACT < .NO
		ACT = 1
		ACT.ATagParams = || class="active" |*||*|
	}
}


More information about the TYPO3-english mailing list