Broken links
-
Hi,
I have recently bought and activated ai1ec on our website.
We are extremely happy with the plugin and it is exactly what we’ve been looking for.Unfortunately, we did find one thing that seems to be problematic:
in the url field for frontend submission, people are required to enter http or https or otherwise the link will not be generated correctly.Is there a simple way to fix this? I can’t ask all of my users to manually enter https:// every time they want to post an entry, it is just out of their scope to think about things like that.
I tried editing the front_end_create_event_form.js with the following:
$url_field_temp = e(this) // add url temp variable if (substr($url_field_temp, 0, 7) == 'https://') { $url_field_temp = substr($url_field_temp,7); } if (substr($url_field_temp, 0, 8) == 'https://') { $url_field_temp = substr($url_field_temp,8); } $url_field_temp = concat('https://', $url_field_temp); $url_field = $url_field_temp; console.log($url_field);
but it did not work at all. I added that after `url, #ai1ec_ticket_url”, l).each(function() {
`Cheers,
Antonio.
- The topic ‘Broken links’ is closed to new replies.