Version: 4.0.1 Reporter: Jeremy Gimbel - Conflux Group —
I imagine this is not a new bug, but thought I’d submit it anyway.
When using the {exp✉️contact_form} tag on the index of a site, the module forces the form to post to /index instead of the root of the site.
Line 998 of mod.email.php defaults the URI string to index if it is blank. It seems like this may be leftover from earlier versions.
In system/ee/EllisLab/Addons/email/mod.email.php
remove line 1004, and on line 771 replace:
if ($x[0] == '' OR ! preg_match('{^http(s)?:\/\/}i', $x[0]))
{
$return_link = ee()->functions->form_backtrack(1);
}
with:
if ($x[0] == '')
{
$return_link = ee()->functions->form_backtrack(1);
}
elseif ( ! preg_match('{^http(s)?:\/\/}i', $x[0]))
{
$return_link = ee()->functions->create_url($x[0]);
}
ExpressionEngine implements Markdown Extra and BBCode. Please see the Markdown Extra docs and the BBCode Wikipedia article for a full reference.
**bold**
, __bold__
, *italics*
, _italics_
, ~strike/del~
, `code()`
bold, italics, strike/del, code()
Link: [link title](https://example.com)
Image: ![alt text](https://example.com/image.jpg)
[blockquote]...[/blockquote]
, [quote]...[/quote]
, and Markdown style:
> Some quoted text. > > This is all one quote.
[code]...[/code]
, and you can also specify the language for syntax highlighting, [code=php]...[/code]
GitHub flavored Markdown code fences are also supported:
``` public function decoderRing($str) { return str_rot13($str); } ```