Joomla 5 Mitteilung

Wir freuen uns mitteilen zu können, dass seit dem 29. Januar 2024 alle unsere Joomla Erweiterungen mit Joomla 5 kompatible sind.

Für alle die gerade noch von Joomla 3 auf 4 aktualisieren: Anleitungen für die Joomla 4 Migration gibt es hier:

Es gibt nun auch eine eigenständige Dokumentation für Visforms für Joomla 4 und für Visforms auf Joomla 5

Forum

Visforms Subscription Inhaber können in unserem Forum Fragen stellen. Bitte mit dem entsprechenden Benutzer anmelden.
Jeder kann lesend auf das Forum zugreifen.

Bitte stellen Sie nur 1 Frage pro Thema.

Wrongly expanded URL in 'result mail' and 'receipient mail'

Mehr
2 Jahre 7 Monate her - 2 Jahre 7 Monate her #7651 von Blacksmith
Deutscher Text am Ende.

I am trying to place a link to a form in the 'result mail' and 'receipient mail'.

The editor shortens my link from  'https://myDomain/index.php/myForm' to 'index.php/myForm'. When filling out and submitting the form, this link expands incorrectly to ' myDomain.websites.myHoster.local/index.php/myForm '.

Is this a VisForms or a Joomla problem, is there a workaround for this? 
---
Ich versuche im einem 'result mail' und 'receipient mail' einen Link zu einem Formular unterzubringen.

Der Editor kürzt meine Link von 'https://myDomain/index.php/myForm' auf 'index.php/myForm'. Beim Ausfüllen und Absenden des Formulars wird dieser Link falsch auf ' myDomain.websites.myHoster.local/index.php/myForm ' expandiert.

Ist das ein VisForms oder ein Joomla Problem, gibt es einen Workaround dafür?  
Letzte Änderung: 2 Jahre 7 Monate her von Blacksmith.

Mehr
2 Jahre 7 Monate her #7652 von Administrator AV
Deutscher Text am Ende.

Hi Blacksmith,
first of all, as you might have noticed, I have just released a new Visforms/Subscription for Joomla! 3 which should be fully compatible with php 8 and Visforms/Subscription for Joomla! 4. This was really hard work :-) And I'm really happy
There are two components involved in your Problem.
First there is an option "URLs" in the Editor Plugin (TinyMCE) configuration were you can set, whether local URLs should be converted to relative URLs. Maybe setting set option to "Absolute" might fix the problem, but it will then be used everywhere on your website, where you use the TinyMCE Editor. This option is enforced, when you save a page where you have content in an editor window. Changing the option does not change stored content, as far as I know.

Second, as an email leaves your local website system, relative URLs won't work in an email. Therefore actually the Visforms code preprocesses the email text, searches for relative URLs and replaces them with the absolute URL by prepending the JURI::base() to the internal URL. It seems, that the JURI::base() returns an invalide path in your case. This Joomla function is expacted to return the proper path. Usually this feature works fine and as it depends on the very concrete circumstances on your webspace it is difficult to debug.
Regards,
Aicha

Hallo Blacksmith,
Zunächst einmal habe ich, wie du vielleicht bemerkt hast, gerade ein neues Visforms/Subscription für Joomla! 3 released, das vollständig kompatibel mit PHP 8 sein sollte. Und Visforms/Subscription für Joomla! 4. Das war wirklich harte Arbeit :-)

An deinem Problem sind zwei Komponenten beteiligt.
Zunächst gibt es in der Editor Plugin (TinyMCE) Konfiguration die Option "URLs", in der du einstellen kannst, ob lokale URLs in relative URLs umgewandelt werden sollen. Vielleicht kann das Setzen der Option auf "Absolute" das Problem beheben, aber die Option wird dann überall auf deiner Website verwendet, wo du den TinyMCE-Editor benutzt. Diese Option wird angewandt, wenn du eine Seite speicherst, die ein Editorfenster mit Text enthält. Das Ändern der Option ändert meines Wissens keine gespeicherten Inhalte.

Zweitens: Da eine E-Mail dein lokales Website-System verlässt, funktionieren relative URLs in einer E-Mail nicht. Daher preprozessiert der Visforms-Code tatsächlich den E-Mail-Text, sucht nach relativen URLs und ersetzt diese durch die absolute URL, indem er der internen URL das JURI::base() voranstellt. Es scheint, dass JURI::base() in deinem Fall einen falschen Pfad zurückgibt. Von dieser Joomla-Funktion wird erwartet, dass sie den richtigen Pfad zurückgibt. Normalerweise funktioniert dieses Feature gut und da es von den sehr konkreten Umständen auf deiner Webspace abhängt, ist es schwierig zu debuggen.
Grüße,
Aicha

:idea: I recommend you the new and up-to-date documentation for Joomla 4:
docs.joomla-5.visforms.vi-solutions.de/en/docs/
Most of this also applies retrospectively to Joomla 3.
Please only ask 1 question per topic :-).

:idea: Ich empfehle Dir die neue und aktuelle Dokumentation für Joomla 4:
docs.joomla-5.visforms.vi-solutions.de/docs/
Das meiste gilt rückwirkend auch für Joomla 3.
Bitte immer nur 1 Frage pro Thema stellen :-).

Mehr
2 Jahre 7 Monate her #7658 von Blacksmith
Many thanks for this answer.

1 Switching TinyMCE permanently would probably be a bad idea. Temporarily is tricky too, though, because I'd have to switch it back every time I made a small change to the form. At some point, I'm sure I'd forget about it.

2 No idea why my JURI::base() returns a wrong value. I suspect it comes from the way the ISP set up the server. It might be a consequence of the 'load balancer' they use - that has caused some headaches for me before....

My current conclusion from your explanation: for now no links in 'result mail' and 'receipient mail'!

Thanks again!

---
Danke für diese Antwort.

1 TinyMCE dauerhaft umzustellen wäre wohl eine schlechte Idee. Vorübergehend ist aber ebenfalls heikel, weil man das bei jeder kleinen Änderung des Formulars wieder umstellen müsste. Irgendwann würde ich das sicher vergessen.

2 Keine Ahnung, warum mein JURI::base() einen falschen Wert zurückgibt. Ich vermute es kommt von der Art und Weise, wie der ISP den Server aufgesetzt hat. Ich könnte mir vorstellen, dass es eine Folge des Load Balancers ist, der dort verwendet wird - der hat mir schon mehr Kopfzerbrechen verursacht…

Mein momentaner Schluss aus Deiner Ausführung: vorerst keine Links in 'result mail' und 'receipient mail'!

Nochmals herzlichen Dank!

 

Moderatoren: Administrator AVAdministrator IV
Powered by Kunena Forum