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.

URLs being rewritten on template

August 31, 2011 1:21pm

Subscribe [2]
  • #1 / Aug 31, 2011 1:21pm

    Ryan M.

    1511 posts

    I have a channel that has a textarea with a number of links in it. On the template those are being manipulated by EE, and I’m not sure why. For example, these links:

    <a href="/add-ons">View the Add-on library »</a>
    <a href="/add-ons/ee2">EE 2 Ready Add-ons »</a>
    <a href="/filter/?t=ext">Extensions »</a>
    <a href="/filter/?t=mod">Modules »</a>
    <a href="/filter/?t=plug">Plugins »</a>

    are being output like so (imagine there are no spaces between the ‘%’ symbols and the number following them):

    <a href="http://devot-ee.com/?URL=%">View the Add-on library »</a>
    <a href="http://devot-ee.com/?URL=%">EE 2 Ready Add-ons »</a>
    <a href="http://devot-ee.com/?URL=%">Extensions »</a>
    <a href="http://devot-ee.com/?URL=%">Modules »</a>
    <a href="http://devot-ee.com/?URL=%">Plugins »</a>

    In my channel prefs, I have the “Automatically turn URLs and email addresses into links?” setting set to “no”. I’m not sure where else to look. I know EE does this for URL’s in the Control Panel (I’ve seen that before in EE1, at least) but I’ve never seen this on the front end. You can see the URL’s yourself by hovering over the links in the “Over 800 Ways…” splash area at the upper right of the devot-ee.com homepage.

  • #2 / Aug 31, 2011 1:43pm

    lebisol

    2234 posts

    Odd, unless the masterminds of EE have an answer let’s chat about this…
    Any url rewrite rules?
    Is {URL} field name in EE - field format to ‘none’?
    How are the links entered into field and how are you constructing URLs in your template?

  • #3 / Aug 31, 2011 2:51pm

    Ryan M.

    1511 posts

    Basic rewrite rules we’ve had in place for ages - removing index.php using the exclude method, remove trailing slashes, a few 301 redirects.

    Field format is “none” on this field.

    Links are entered exactly as shown in previous post - just normal, relative links, and the field containing those links is output on the template much like this:

    <div class="feature" id="{url_title}">
      {feature_body}
    </div>

    The only thing I can think of is that this field is being output in a channel:entries loop contained in a Template Morsel (a Solspace add-on). Nothing terribly complicated.

    Looking directly in the database: exp_channel_data for that field shows the links are stored as I input them. However, looking in exp_template_morsels_cache shows the modified URLs have been generated by that point. Pulling the channel:entries loop out of the morsel outputs the links as I’d expect (read: untouched) so it looks like this might be something Template Morsels is doing. Time to head to the Solspace forums.

  • #4 / Aug 31, 2011 7:21pm

    lebisol

    2234 posts

    Ah there you go 😊

  • #5 / Aug 31, 2011 10:41pm

    Kyle Cotter

    730 posts

    Thanks for the help here lebisol!

    Sounds like a plan Ryan. I’ll leave this thread open, so you can report your findings here once you contact Solspace.

    Thanks guys!

  • #6 / Sep 01, 2011 12:34pm

    Ryan M.

    1511 posts

    According to Nicolas’ post on the Solspace forums, it looks like it might be a bug. You can probably close this thread here, as I’m sure the issue will be taken care of on that end.

  • #7 / Sep 01, 2011 12:40pm

    Kyle Cotter

    730 posts

    Glad you’re getting this worked out Ryan. If you have any more problems, feel free to open a new thread.

    Thanks!

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

ExpressionEngine News!

#eecms, #events, #releases