Graycot / loop-ring

GNU General Public License v3.0
10 stars 22 forks source link

Change prev/next link behavior on pending membersites #18

Open Graycot opened 1 year ago

Graycot commented 1 year ago

Current behavior:

After a membersite has added the loopring widget but has not yet been PR approved, the prev/next links redirect to a random member site.

Proposed behavior:

Redirect prev link to the first site in the memberlist while redirecting the next link to the most recently joined member.

Purpose:

The current behavior can be considered inconsistent and undesirable, it may lead a member-site admin or visitor to believe that something has broken if the prev/next links are constantly changing .

Graycot commented 1 year ago

This change of behavior will also apply to current member-sites if the REGEX cannot locate the referrerIndex of a member-site within the sites.json file.