WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] WP2.5 Keeps Changing My Link URLs (3 posts)

  1. skeezicks
    Member
    Posted 6 years ago #

    Every time I open the Editor in WP 2.5, something changes the relative links in my pages to absolute links that reference wp-admin/uploads, so that

    uploads/whatever/whateverfile.dat

    becomes

    http://mysite/wp-admin/uploads/whatever/whateverfile.dat.

    Even after using the HTML mode to change them back to relative links, something changes them back (again) to absolute links if I click the Visual tab in the editor.

    How does this fit in with Matt's post:

    March 29, 2008
    WordPress 2.5
    By Matt. Filed under Releases.
    WordPress 2.5, the culmination of six months of work by the WordPress community, people just like you. The improvements in 2.5 are numerous, and almost entirely a result of your feedback: multi-file uploading, one-click plugin upgrades, built-in galleries, customizable dashboard, salted passwords and cookie encryption, media library, a WYSIWYG that doesn’t mess with your code, concurrent post editing protection, full-screen writing, and search that covers posts and pages.

    This is very frustrating as I have a couple of pages with almost 100 relative links on them and I have to update those pages each month. That means resetting them after WP (or the editor) screws them up again.

    Is there a sensible workaround?

  2. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

    Well, while I don't know what's doing it, I do know that you should absolutely not use relative links. A link like "uploads/whatever/whateverfile.dat" is incompatible with the WordPress permalinks.

    Or you can use them from the root path of the site, like "/uploads/whatever/whateverfile.dat".

    Anyway, TinyMCE is likely making your links non-relative, because, well, a relative link is incorrect in the visual editor. It has to point to something, and in your case, since you're in the /wp-admin/ context, it's making it point there. A root link probably would get corrected correctly.

  3. charity
    Member
    Posted 6 years ago #


Topic Closed

This topic has been closed to new replies.

About this Topic