Noziro / MediaTracker

EXTREME ALPHA STATE. Track all of your media, from movies, to games, anime, books, and more. Official name TBD.
0 stars 0 forks source link

Improve finalize() function #24

Closed Noziro closed 4 years ago

Noziro commented 4 years ago

It's rather clunky in its current state. Proposed changes:

Add variable inputs to function as a second variable. Perhaps in array form. These are the GET queries to add onto the return URL.

These queries can be added on dynamically, with proper website.com/page?q=1&q=2 formatting. Instead of what happens currently, which is website.com/page?&q=1

Function use would look like:

finalize('/collection', ['id=1', 'error=database-failure']);

output: /collection?id=1&error=database=failure