This allows shortlinks in the form of <<devdiscord>> and is easier,
at least for me, than memorizing the spoink link.
This commit is contained in:
Guangcong Luo 2020-06-13 22:36:57 -04:00
parent 9de28f5f00
commit be31237b96
2 changed files with 3 additions and 1 deletions

View File

@ -52,6 +52,8 @@ RewriteCond %{HTTP_HOST} ^play\.pokemonshowdown\.com$ [NC]
RewriteRule ^dex\/?$ https://dex.pokemonshowdown.com/ [R=302,L]
RewriteCond %{HTTP_HOST} ^play\.pokemonshowdown\.com$ [NC]
RewriteRule ^insecure\/?$ http://play.pokemonshowdown.com/?insecure [R=302,L]
RewriteCond %{HTTP_HOST} ^play\.pokemonshowdown\.com$ [NC]
RewriteRule ^devdiscord\/?$ https://discord.com/invite/D8QwhsH [R=302,L]
# rewrite old sprite directories/files
RewriteRule ^sprites\/xyani(.*)?$ sprites/ani$1 [L,QSA]

View File

@ -1308,7 +1308,7 @@ function toId() {
) && this.className !== 'no-panel-intercept') {
if (!e.cmdKey && !e.metaKey && !e.ctrlKey) {
var target = this.pathname.substr(1);
var shortLinks = /^(rooms?suggestions?|suggestions?|adminrequests?|bugs?|bugreports?|rules?|faq|credits?|news|privacy|contact|dex|insecure|replays?|forgotpassword)$/;
var shortLinks = /^(rooms?suggestions?|suggestions?|adminrequests?|bugs?|bugreports?|rules?|faq|credits?|news|privacy|contact|dex|insecure|replays?|forgotpassword|devdiscord)$/;
if (target === 'appeal' || target === 'appeals') target = 'view-help-request--appeal';
if (target === 'report') target = 'view-help-request--report';
if (isReplayLink) {