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
Wrong Links for pageids #5
Comments
Which TYPO3 version are you using? |
I am not sure, maybe TYPO3 7.6 |
This is rather strange then, because the |
Ok, I found it. |
I released version 8.7.3 today. can you please verify if this is still a problem in the latest version? |
The problem still exista, as you didn't change the javascript file. Here the patch again: Index: www.local.typo3.org/typo3conf/ext/rtehtmlarea/Resources/Public/JavaScript/RteLinkBrowser.js
|
@mmirsch Thanks for the info. Would you mind creating a Pull-Request instead of posting it inline in the comments? |
Ok, how do I do that? |
Ok, found a way to do the pull request abd I hope I did it correctly. |
Do you see the same problem if you set such a link in normal link field (e.g. header link)? |
I cannot even activate this in TYPO3 8.7. TCEMAIN.linkHandler.page { In page tsconfig, but when I checked source code I found that this option is only working for recordlists. |
You are right. I looked up the code now too and this feature is indeed RTE-only. Your fix is working as expected, but actually I consider this a core-bug, which needs to be fixed for any RTE. The appropriate place would be this: I'll create a patch for core, but since v8 is already in ELTS mode, I can't guarantee this will still be fixed for v8. |
Will continue in https://forge.typo3.org/issues/82942 |
When using pageIdSelector to enter TYPO3 page-ids directly, the generated links are not working any more.
I fixed this by entering these lines in "rtehtmlarea\Resources\Public\JavaScript\RteLinkBrowser.js":
Here my Patch:
--- /typo3conf/ext/rtehtmlarea/Resources/Public/JavaScript/RteLinkBrowser.js (revision )
+++ /typo3conf/ext/rtehtmlarea/Resources/Public/JavaScript/RteLinkBrowser.js (revision )
@@ -96,6 +96,11 @@
delete attributes.target;
delete attributes.params;
+ // replace links from PageIdInputField
+ if (parseInt(input) == input) {
+ input = 't3://page?uid=' + input;
+ }
+
RteLinkBrowser.plugin.createLink(
input + curParams,
curTarget,
The text was updated successfully, but these errors were encountered: