Skip to content

Query String Keeper plugin for YOURLS - tested on YOURLS version 1.8.3.test on php version 8.0.12.

License

Notifications You must be signed in to change notification settings

littleskyfish/query-string-keeper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

query-string-keeper

Query String Keeper plugin for YOURLS - tested on YOURLS version 1.8.3 and php version 8.0.12.

Description

Query String Keeper retains the query string added to the short url and adds it to the long url. If the long URL already includes a query string, it appends it following an ampersand (&) and if not, appends it to the long url following a question mark (?).

Examples

Examples 1 & 2 use the following short & long URLs configured in YOURLS:
Short url = http://sho.rt/keyword
Long url = http://www.longurl.com

Example 1
http://sho.rt/keyword?foo=bar
...becomes...
http://www.longurl.com/?foo=bar

Example 2
http://sho.rt/keyword?123
...becomes...
http://www.longurl.com/?123

Example 3 uses the following short & long URLs configured in YOURLS:
Short url = http://sho.rt/keyword
Long url = http://www.longurl.com?foo=bar
Example 3
http://sho.rt/keyword?zoo=car
...becomes...
http://www.longurl.com/?foo=bar&zoo=car

Installation

  1. Move query-string-keeper directory to the /user/plugins directory of the YOURLS installation.
  2. Go to the Plugins administration page ( eg http://sho.rt/admin/plugins.php ) and activate the Query String Keeper plugin.

Other/References

This plugin adapted from the Query String Keeper plugin by jessemaps. Solved the problem <PHP v7 for some reason does not return any value in $_SERVER['QUERY_STRING']>. Thanks for skarjoss's comment.

About

Query String Keeper plugin for YOURLS - tested on YOURLS version 1.8.3.test on php version 8.0.12.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages