Skip to content
This plugin changes the error messages when a keyword or url already exists. If a keyword already exists, the error message will display the URL for that keyword. If the URL already exists, the share box will be displayed.
PHP
Branch: master
Clone or download
Latest commit 0b2583a Feb 18, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
change-error-messages bug fix Jun 21, 2017
LICENSE.md Create LICENSE.md Mar 29, 2016
README.md Clarify behavior Jun 21, 2017

README.md

yourls-change-error-messages

When attempting a new short url, YOURLS default behavior is to simply send out an error message:

  • whenever a requested custom keyword already exists in the database
  • when a url already exists in the databse and define( 'YOURLS_UNIQUE_URLS', true ); is set in config.php

This plugin changes that behavior and the content of those messages so that:

  • If a keyword already exists, the error message will display the URL for that keyword.
  • If the URL already exists, its shortened url will be returned and the share box will be displayed.

This also works so that the API returns postive values as well.

You can’t perform that action at this time.