⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Problem posting/inserting content that contains an url



Chriz

Chriz
  • profile picture
  • Member

Posted 27 August 2019 - 08:20 AM

Hi.

 

I have just installed Grocery CRUD to manage my website.

Everything works well and i can manage my content.

The problem is when i write an article that includes an URL, linking to a external website and save/create.

Everything is posted to my DB and everything seems OK.

When displaying the post on my website, the urls are wrong, wierd format.

Example.

 

I write a small text and insert a link. I am using the ckeditor btw.

<a href="https://www.test.com">https://www.test.com</a>

Expecting to see https://www.test.com as a clicable link among the rest of the text that is written.

 

What i get is this when looking at the code on my page.

<a href="\"https://www.test.com\"">https://www.test.com</a>

Ekstra "\ results in a broken link.

 

When hoovering over the link i see this:

https://www.my_domain.com/"https://www.test.com/

Is this something that happens when inserting to database?

I not sure how i can solve this so i can insert links which i do often.

I need some advice/help on this please. Does anyone have an idea on how to fix this?

 

 

This is my example text with an url that is not working at the moment.

 

\n long desc - Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. https://www.test.com