Title: Relative Links Fix
Author: achellios
Published: <strong>January 4, 2010</strong>
Last modified: February 22, 2010

---

Search plugins

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/relative-links-fix.svg)

# Relative Links Fix

 By [achellios](https://profiles.wordpress.org/achellios/)

[Download](https://downloads.wordpress.org/plugin/relative-links-fix.1.3.zip)

 * [Details](https://co.wordpress.org/plugins/relative-links-fix/#description)
 * [Reviews](https://co.wordpress.org/plugins/relative-links-fix/#reviews)
 *  [Installation](https://co.wordpress.org/plugins/relative-links-fix/#installation)
 * [Development](https://co.wordpress.org/plugins/relative-links-fix/#developers)

 [Support](https://wordpress.org/support/plugin/relative-links-fix/)

## Description

WordPress bloggers will sometimes copy headlines from a WordPress-generated homepage
and paste them into the post-editing window. In Firefox, this has the unfortunate
result of converting absolute urls into relative ones. For example, copying a headline
from http://khaotica.com converts the permalink for this article:

http://khaotica.com/2009/12/firefox-relative-links-fix-wordpress.html

…to a relative link:

../2009/12/firefox-relative-links-fix-wordpress.html

This creates broken links when the post is viewed on the archive page and RSS feed.
The links will also be broken for subscribers who receive posts via email.

Enter the Relative Links Fix. This plugin will replace relative urls with the proper
absolute urls every time you save or publish a post. If you use WordPress and can’t
shake those copy-paste habits, this is the plugin for you.

As always, donations are appreciated. I promise to spend them exclusively on soda(
the creative fuel that powers developers everywhere).

## Installation

 1. Upload `linksfix.php` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress

## FAQ

  How do I correct relative urls in my post?

After the plugin is activated, simply publish or update the post. The plugin automatically
corrects relative urls in the post each time it is saved to the database.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Relative Links Fix” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ achellios ](https://profiles.wordpress.org/achellios/)

[Translate “Relative Links Fix” into your language.](https://translate.wordpress.org/projects/wp-plugins/relative-links-fix)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/relative-links-fix/),
check out the [SVN repository](https://plugins.svn.wordpress.org/relative-links-fix/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/relative-links-fix/)
by [RSS](https://plugins.trac.wordpress.org/log/relative-links-fix/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.3

 * Corrected bug for WordPress subdirectory

#### 1.2

 * Plugin now corrects img src links in addition to href links.

#### 1.1

 * Tested in WP 2.9; updated description and FAQ.

#### 1.0

 * Original release.

## Meta

 *  Version **1.3**
 *  Last updated **16 years ago**
 *  Active installations **10+**
 *  WordPress version ** 2.5 or higher **
 *  Tested up to **2.9.2**
 *  Language
 * [English (US)](https://wordpress.org/plugins/relative-links-fix/)
 * Tags
 * [editor](https://co.wordpress.org/plugins/tags/editor/)[Firefox](https://co.wordpress.org/plugins/tags/firefox/)
   [links](https://co.wordpress.org/plugins/tags/links/)[paste](https://co.wordpress.org/plugins/tags/paste/)
   [relative](https://co.wordpress.org/plugins/tags/relative/)
 *  [Advanced View](https://co.wordpress.org/plugins/relative-links-fix/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/relative-links-fix/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/relative-links-fix/reviews/)

## Contributors

 *   [ achellios ](https://profiles.wordpress.org/achellios/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/relative-links-fix/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=99KW4AJ74J7E8&lc=US&item_name=Joshua%20Hill%20%28khaotica%2ecom%29&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted)