Coder Social home page Coder Social logo

yourls-query-string-keeper's Introduction

Description

By default, YOURLS ignores query string parameters on shorturls. For example:

https://sho.rt/1?param=value redirects to https://example.com/longurl/here

This plugin modifies this behavior so that the entire query string is appended onto the longurl. For example, with this plugin activated:

https://sho.rt/1?param=value redirects to https://example.com/longurl/here?param=value

Blacklisted parameters

In order to maintain compatibility with the internet at large, this plugin does not pass along Facebook's fbclid parameter if it is present. This parameter is known to cause some websites to erroneously generate a 404 Not Found error.

If you'd like to modify this blacklist, please see the ozh_kqs_yourls_add_query_arg() function in plugin.php.

Installation

  1. In /user/plugins, create a new folder named yourls-keep-query-string.
  2. Drop these files in that directory.
  3. Go to the Plugins administration page (e.g. https://sho.rt/admin/plugins.php) and activate the plugin.
  4. Have fun!

License

Released under the MIT License.

yourls-query-string-keeper's People

Contributors

bordoni avatar jessemaps 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.