Extendy / SmartyURL

SmartyURL is a PHP-based web application for Smart URL management, Sharing, shortening, and analytics, featuring smart redirects.
https://docs.smartyurl.extendy.net/
MIT License
12 stars 2 forks source link

Change of devicecond handling #49

Closed mshannaq closed 1 year ago

mshannaq commented 1 year ago

In this PR I will change the device redirect condition structure in database

from (example):

{"condition": "device", "conditions": [{"computer": [{"windows": "www.microsoft.com"}, {"linux": "www.linux.com"}], "smartphone": [{"andriod": "www.andriod.com"}, {"iphone": "www.apple.com"}]}]}

to: (example):

{"condition": "device", "conditions": {"applesmartphone": "http://itunes.com/", "windowscomputer": "https://www.microsoft.com/", "andriodsmartphone": "https://play.google.com/"}}

to keep the device conditions more simple and that will make it easy to add more new devices in future.

Checklist: