ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Auto URL Linking Weirdness

September 05, 2012 12:38pm

Subscribe [1]
  • #1 / Sep 05, 2012 12:38pm

    ParisJC

    150 posts

    I have “Automatically turn URLs and email addresses into links” turned on. In the past (v1.x days) there once was a problem with using punctuation before and after URLs and adresses. But now I’ve found an anomaly in v2.5.2. Maybe. Though the links themselves are created correctly.

    I have formatting set to none in the body field. When I insert:

     ... <a href="http://www.domain.com">http://www.domain.com</a>.

    The output is:

     ... <a href="http://www.domain.com">http://www.domain.com</a>
    .

    Note the period moved outside the closing paragraph code.

    I worked around this by inserting a space between the URL and the period. I notice it, but users probably won’t.

    When a comma was used after the URL:

     ... <a href="http://www.domain.com">http://www.domain.com</a>, and by the ... .

    The output was:

     ... <a href="http://www.domain.com">http://www.domain.com</a> and b,y the ... .

    Note how the comma jumped several spaces to the right. I just deleted the comma to make the problem go away (after thinking I was crazy for not finding that extra comma).

    Bug with the way auto URLs are treated with formatting turned off?

  • #2 / Sep 07, 2012 10:57am

    Dan Decker

    7338 posts

    Hi ParisJC,

    Thanks for bringing this to our attention!

    I was able to reproduce the output weirdness, so I filed a bug report. I went ahead and marked it as a show-stopper since it affects content output.

    Is there anything else I can assist you with?

    Cheers,

  • #3 / Sep 07, 2012 11:06am

    ParisJC

    150 posts

    I’m good to go with everything else so far, Dan. Glad you were able to replicate the problem.

    Thanks for filing the bug report!

  • #4 / Sep 10, 2012 2:14pm

    Dan Decker

    7338 posts

    Hi ParisJC,

    However odd it sounds, I’m glad I was able to replicate too. Bug we can fix!

    If you need anything else, please let us know!

    ~

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases