Code Monkey home page Code Monkey logo

yourls-query-string-keeper's Introduction

Query String Keeper

Query String Keeper plugin for YOURLS - tested on version 1.7.

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 Forward plugin by llonchj which doesn't handle passing a single number as in sho.rt/foo?123.
The Append Query String plugin by drockney works for those that want the query string to just be appended without the ? or & symbols.

yourls-query-string-keeper's People

Contributors

jessemaps avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.