Help needed - a href url problem...

by 4 replies
5
Hi,

I have a weird problem and it's driving me nuts. Can't find any solutions on the internet and I need to sort this asap today. It may be something simple but I just can't work it out.

When I am displaying links on a page it is putting line breaks in them. There is NO restrictions on the table width / column widths etc so I don't know why it is doing this.

Here is an example.....

<a href="http://www.theindianblogger.com/blogging/the-best-article-rewriting-software-on-earth-and-its-free">http://www.theindianblogger.com/blogging...</a>

The following ends up linking to something like this......

http://www.theindianblogger.com/blog...2%80%99s-free/

Notice the %3Cbr%20/%3E and such like that is appearing within the links.

Here is the output that was in the source code.....

<a href='http://www.theindianblogger.com/blogging/the-best-article-rewriting-soft<br />ware-on-earth-and-it%E2%80%99s-free/' title='Click to view page' target='_blank'>http://www.theindianblogger.com/blogging/the-best-article-rewriting-soft<br />ware-on-eart...</a>

Does anybody know what might be causing this and how I can fix it.

Many thanks

Andy
#programming #href #needed #problem #url
  • If it is a Wordpress blog just go edit the post.

    Underneath the title should be the URL that you can edit. Seems like when you originally typed the Title (which makes the initial URL) you put an apostrophe and some other stuff in it.

    Just try to edit on the post to what you want and see if it works.

    *But you will change the URL so any backlinks you have will lead to a 404. You might as well just leave it as is if that post is popular.
    • [1] reply
    • Thanks Aaron, but that isn't the problem. It is not a Wordpress issue. I wrote a script that retrieves urls in their entirety and then produces them on a page. The breaks and everything aren't there so not sure why these breaks are being generated. Nothing is being added to the urls.
      • [1] reply
  • I've managed to fix this issue now.

Next Topics on Trending Feed