=== Edel Go Redirects ===
Contributors: edelhearts
Tags: redirect, short link, short url, link counter, go links
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.1.3
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Create short links like /go/slug that redirect to any URL, and count how many times each link is used.

== Description ==

Edel Go Redirects lets you create short, memorable links on your own domain, such as `https://example.com/go/course`, and redirect them to any URL. Each redirect is counted, so you can see which link is used the most.

Typical uses:

* Put a short link in a book, a slide deck or a printed flyer instead of a long affiliate URL
* Use a different slug for each place you share the same destination (website, social media, email) and compare the counts
* Change the destination later without editing the book or the post that contains the link

Features:

* Add, update and delete links from **Tools > Go Redirects**
* Redirect count per link, with a reset button
* Change the URL prefix (default `go`) if the path is already in use
* Links can also be added from code with the `edel_go_links` filter
* No custom database tables. Everything is stored in three options and removed on uninstall

== Installation ==

1. Upload the `edel-go-redirects` folder to `/wp-content/plugins/`, or install it from **Plugins > Add New Plugin**.
2. Activate the plugin.
3. Go to **Tools > Go Redirects**, enter a slug and a destination URL, and click **Save link**.
4. Open `https://your-site.example/go/your-slug` to test the redirect.

== Frequently Asked Questions ==

= Does it need pretty permalinks? =

Yes. The plugin matches the request path, so permalinks must be set to anything other than "Plain".

= What if I already have a page at /go/? =

Change the prefix in **Tools > Go Redirects > Settings**. For example, set it to `l` and your links become `/l/slug`.

= Can I add links from code? =

Yes. Use the `edel_go_links` filter:

`
add_filter('edel_go_links', function ($links) {
    $links['docs'] = 'https://example.com/docs/';
    return $links;
});
`

Links added by code are shown in the table but cannot be deleted from the screen.

= Is the redirect permanent (301) or temporary (302)? =

Temporary (302), so that browsers keep asking the server and every visit is counted.

= Is the plugin available in my language? =

The plugin is translation ready. A Japanese translation is bundled. Other translations are managed on translate.wordpress.org and are installed automatically when they are available for your site language; a language pack from translate.wordpress.org takes priority over the bundled file.

= What is removed on uninstall? =

The three options that store the links, the prefix and the counts.

== Screenshots ==

1. Tools > Go Redirects: the list of links with counts, and the form to add a link.

== Changelog ==

= 1.1.3 =
* Bundled Japanese translation
* Regenerated the translation template (includes the plugin header strings)

= 1.1.2 =
* Added a Settings link on the Plugins screen
* Added a FAQ entry about translations

= 1.1.1 =
* Removed the Plugin URI header and fixed the Contributors name (review feedback)

= 1.1.0 =
* Links are now managed from the admin screen instead of code
* URL prefix can be changed
* Works in subdirectory installs
* Translation ready (Japanese translation included)

= 1.0.0 =
* Initial private release

== Upgrade Notice ==

= 1.1.3 =
Adds a bundled Japanese translation. No changes to your links or counts.

= 1.1.2 =
Adds a Settings link on the Plugins screen. No changes to your links or counts.

= 1.1.1 =
Header cleanup only.

= 1.1.0 =
Links defined in code in 1.0.0 must be re-entered on the Tools > Go Redirects screen, or added with the edel_go_links filter.
