Project

General

Profile

Actions

Bug #5442

closed

Shortlink creation problem

Added by Matt Gold about 8 years ago. Updated about 8 years ago.

Status:
Resolved
Priority name:
Normal
Assignee:
Category name:
cuny.is
Target version:
Start date:
2016-04-12
Due date:
% Done:

0%

Estimated time:
Deployment actions:

Description

A few days ago, Luke asked me to set up a shortlink from cuny.is/tcuny to http://goo.gl/forms/WGE4WrgFv7

He then realized that shortlinks are case-sensitive and that the flyer circulating has the shortlink in all caps. So he asked me to create a shortlink from cuny.is/TCUNY to http://goo.gl/forms/WGE4WrgFv7

When I tried to do this, a new entry was not created. When I tried to edit the older shortlink, the tool said that the URL was already in use.

Any ideas? Ideally, we'd be able to have two different shortlinks pointing to the same URL.

Actions #1

Updated by Boone Gorges about 8 years ago

  • Status changed from Assigned to Resolved
  • Target version set to 1.9.14

It's not possible to allow two different URLs in the way you've requested, without rebuilding our database.

I just installed a YOURLS plugin that forces cuny.is shortlinks to be case-insensitive. This way, cuny.is/TCUNY points to the same place as cuny.is/tcuny (or tCuNy or whatever). https://github.com/cuny-academic-commons/cac/commit/bb9128d4f93ab036d4f6049faec930465a51e480 This is live on the production site.

Actions #2

Updated by Matt Gold about 8 years ago

Awesome. Thanks so much, Boone!!!

Actions #3

Updated by Matt Gold about 8 years ago

(this has come up twice in the last week, so I appreciate it)

Actions

Also available in: Atom PDF