Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using records as target does not work #84

Open
fnagel opened this issue Jun 27, 2019 · 1 comment
Open

Using records as target does not work #84

fnagel opened this issue Jun 27, 2019 · 1 comment

Comments

@fnagel
Copy link

fnagel commented Jun 27, 2019

I'm using TYPO3 8.7.27 with EXT:my_redirects 4.1.1

When using a link to a EXT:news record the redirect does not work but displays a 404. Message of the "Health" tab is: Response timeout

Redirect "Target" links looks like this:
t3://record?identifier=tx_news&uid=123

My config looks like this and works perfectly fine for all other cases (RTE, header links, ...):

TypoScript:

config.recordLinks {
	tx_news {
	    typolink {
	        parameter = 123
	        additionalParams.data = field:uid
	        additionalParams.wrap = &tx_news_pi1[news]=|
	        useCacheHash = 1
	    }
	}
}

TsConfig:

TCEMAIN.linkHandler.tx_news {
    handler = TYPO3\CMS\Recordlist\LinkHandler\RecordLinkHandler
    label = News
    configuration {
        table = tx_news_domain_model_news
        storagePid = 456
    }
}

Any why this does not work?

@fnagel fnagel changed the title Link Using records as target does not work Jun 27, 2019
@fnagel
Copy link
Author

fnagel commented Jun 27, 2019

Fixed the issues. Problem was that ConfigurationUtility::getDefaultRootPageId($link) was not able to retrieve a proper rootpage as I did not set defaultRootPageId for this extension nor a $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']['_DEFAULT']['pagePath']['rootpage_id'].

Now using a defaultRootPageId configuration, but I don't see how this will work when one of our other rootpages / domains is called with a news record. I think this will need some improvements.

Anyway, I run into another issues. It seems it's not possible to use something like this t3://record?identifier=tx_news&uid=123&L=1 in order to link to another language. Any idea how to solve this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant