• With the last version of wordpress, when i try to add a relative link in the article and i post it, the html editor removes the link. To avoid this, now i am forced 1) to save the article as a draft 2) the html editor removes the relative link and 3) i add it once again. In this way i am able to add a relative link!

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Why are you adding relative links?

    Thread Starter spy2

    (@spy2)

    Because i link pdf files stored in the same folder on the server so i don’t need to add the absolute link. It is more convenient, for example, activating the ssl connection, the url has remained intact.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    WP doesn’t support relative links, so that’s the real issue. Relative urls mess up RSS feeds among other things. I just use the add media button to drop in links to PDF files.

    Changing to SSL is something done only once and easily handled by search/replace scripts or wp-cli.

    Thread Starter spy2

    (@spy2)

    I checked and there is the same issue also with absolute link: when i add a link the editor removes it and all added after that (text in other part, shortcodes etc). With the link seems that the editor does not stores the changes from that point and delete everything.
    To save the changes, i must save the article as a draft and then redo the changes, in this way the editor no more delete everything.

    • This reply was modified 8 years, 5 months ago by spy2.
    • This reply was modified 8 years, 5 months ago by spy2.
    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    How are you doing this? Can you walk me through the steps?

    Thread Starter spy2

    (@spy2)

    1) I write the article
    2) I add a link in a portion of the text
    3) i save the article
    4) the editor deletes the link
    5) i add the link once again and save the article one more time

    If i post the article before adding the link and after i add it, everithing is ok.
    If i add the link before posting the article, the editor deletes it and i must do as shown in step 5)

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    HOW are you adding the link? Using the link tool on the editor? Directly pasting a link into the content?

    Thread Starter spy2

    (@spy2)

    My site is a magazine so often the articles report documents.

    I use the link tool on the editor.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    That’s very strange!

    This may be a plugin or theme conflict. Please attempt to disable all plugins, and use one of the default (Twenty*) themes. If the problem goes away, enable them one by one to identify the source of your troubles.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Relative link’ is closed to new replies.