Feature #6241 short URLs for groups

Added by Boone Gorges almost 3 years ago. Updated almost 2 years ago.

Priority name:
Category name:
Target version:
Start date:
Due date:
% Done:


Estimated time:


Splitting off from #3064.

Groups should have URLs, just like users do. Here's my suggested setup:

1. The default format of the URL will be{group_slug}. See and follow-up conversation.
2. Groups will automatically receive a default slug. I think the way this currently works for users is that the plugin shows the slug on the user profile, and if it doesn't find one in the database, it requests one on the spot. This means we don't need a routine to backfill URLs.
3. Short URL will be displayed somewhere in the group header, I guess? Ideas welcome.
4. There'll be a place in the group Manage section where admins can request a different URL. Most of this can be borrowed from the User interface.

Screenshot_2017-09-27_15-03-28.png (61.9 KB) Screenshot_2017-09-27_15-03-28.png Boone Gorges, 2017-09-27 04:30 PM
Screenshot_2017-09-27_15-03-11.png (45 KB) Screenshot_2017-09-27_15-03-11.png Boone Gorges, 2017-09-27 04:30 PM

Related issues

Related to CUNY Academic Commons - Design/UX #3064: Add Information on Custom Domains to Group Creation ProcessRejected2014-02-21

Related to CUNY Academic Commons - Feature #8835: Extend shortlinks to sitesNew2017-10-20


#1 Updated by Boone Gorges almost 3 years ago

  • Related to Design/UX #3064: Add Information on Custom Domains to Group Creation Process added

#2 Updated by Matt Gold almost 3 years ago

thanks, Boone -- this sounds good

#3 Updated by Boone Gorges over 2 years ago

  • Target version changed from 1.11 to 1.12

I started working on this, but hit some snags that will make it tough to have tested and done for 1.11.

#4 Updated by Boone Gorges about 2 years ago

  • Priority name changed from Normal to High

#5 Updated by Boone Gorges almost 2 years ago

First pass at this functionality is in and

It works like this:
- When a group is loaded and no shorturl is present, a routine runs in the background (at the end of the pageload) to fetch one called 'group-{group_slug}'. This is generally complete by the next pageload.
- When present, the "Quick Link" appears in the header. See attached screenshot, which is from a group of which I'm also a member and which also has social media profile fields. It looks a bit less crowded when both of these things don't obtain. The "Quick Link" terminology is borrowed from user profiles.
- On the primary group Manage panel, there's an interface for changing the short URL. Like in the case of users, there's some ajax that checks for availabilty on keyup (with a one-second delay).

See screenshots. Let me know if anyone wants to test this before our more general release testing.

#6 Updated by Stephen Real almost 2 years ago

What is the expected behavior when I click the CUNY.IS displayed at the top of my Group Page? On the test system it takes me to My Commons page.

#7 Updated by Boone Gorges almost 2 years ago

It should go to the group page. Please give me the URL of the site you're testing with so I can have a look.

#9 Updated by Boone Gorges almost 2 years ago

Thanks, Steve!

It appears that is also mirrored to the dev environment! It didn't used to be, which is why I didn't warn about it. To your /etc/hosts line that points the Commons URLs to LDV1, add So: 

#10 Updated by Boone Gorges almost 2 years ago

  • Status changed from Testing Required to Resolved

#11 Updated by Boone Gorges 6 months ago

  • Related to Feature #8835: Extend shortlinks to sites added

Also available in: Atom PDF