• Resolved skeezicks

    (@skeezicks)


    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

    https://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?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WP2.5 Keeps Changing My Link URLs’ is closed to new replies.