Paul Liebrand’s Weblog

Welcome to my blog mainly about SharePoint

Updated: "TinyUrl" like feature for SharePoint

[Updated – 8/30/2009]

For those of you who have not seen it yet, my SharePoint URL Shortener has been released.  Please see the following posts for more information:

[Updated – 4/13/2009]

As you have probably seen by now I was unable to get the TinyUrl like feature for SharePoint posted by my self imposed date. At this point I am not sure when I’ll get it posted – rest assure, it is coming.

[Updated – 4/2/2009]

For those who missed my Twitter the other day – My current plan is to release the first version of this feature to CodePlex on 4/12/2009 (perhaps sooner). I’ll let you know if this changes.


I have been working on a proof of concept idea to attempt to shorten the URLs that appear in SharePoint. Anyone using SharePoint knows that the URLs can get extremely long and sometimes can be be overwhelming to end-users who have a need to copy and paste them in emails for example.

This feature is not quite complete yet but I thought I would post about it as an early preview.

The basic premise of this feature is to use URL Rewriting, a mechanism to generate a short uniquely ID, and a SharePoint list to store them in.

1. Activating the feature:


2. Navigate to a document library and click the Actions button, or the drop down on a document and select Get ShortUrl


3. You will be redirected to a page that displays the new ShortUrl and it will also automatically copy it to the clipboard:


As you can see the URL generated is http://server/ShortUrl/3V. This URL can now be included in emails, bookmarks, etc and it will always be a direct link to this document.

Even if more than one person selects the Get ShortUrl option on this document, it will always retrieve the same ID.

Stay tuned — I’ll have a downloadable version, instructions, and source available soon.



September 8, 2008 - Posted by | SharePoint | , ,


  1. simple awesome! 😀 been looking for something like this for SharePoint since I first came across TinyURL through using Twitter.

    Will you be making the source code available for the feature?

    Comment by erugalatha | September 11, 2008 | Reply

  2. Yes.

    Comment by liebrand | September 11, 2008 | Reply

  3. Hi Paul,

    Glad your keep coming with great additions for SharePoint.
    Can’t wait to get my hands on this little gem!

    Personally I wouldn’t show the page showing the url has been copied to your clipboard.

    Where do you store the relation shorturl vs longurl?

    Comment by Marco | September 12, 2008 | Reply

  4. Marco,

    Thanks for the feedback. The relationship is actually just stored in a SharePoint list.

    Comment by liebrand | September 12, 2008 | Reply

  5. Paul,
    I’m working on a similar idea rewriting URLs using an http module. The actual rewrite is done using “appl.Context.RewritePath(mappedURL)” It works fine except when the mapped URL contains a Managed Path. No error in the http module, but when sharepoint tries to show the page it throws a “Value does not fall within the expected range” error. Any ideas how to get around this? Many thanks. Stuart

    Comment by Stuart | September 18, 2008 | Reply

  6. Stuart,

    At one point I was attempting to do this and SharePoint was actually very strangely. That is the primarily reason why I decided to implement a solution that does not fundamentally change the way SharePoint works. Without knowing exactly what your code is doing, it would be difficult for me to guess what could be causing that error message.

    Comment by liebrand | September 18, 2008 | Reply

  7. Hi Paul,

    Of course it’s stored in a SharePoint list. 🙂 Nice work.
    Any idea when you’ll be publishing an initial version?

    Comment by Marco | September 19, 2008 | Reply

  8. Looking forward to the code for this. Cool.

    Comment by Paul Whitaker | October 29, 2008 | Reply

  9. Great stuff, Paul! My main concern would be ensuring that you are storing root-relative, rather than absolute, URLs. That way you don’t have to worry about Alternate Access Mappings, renaming servers, etc…

    Obviously, you can’t really do much if someone renames other elements of the path (at least, not without some serious event handling).

    Comment by Woody Windischman | December 29, 2008 | Reply

  10. Great concept! Any update on when this might be available? I keep checking back hoping…

    Comment by Sue Girardier | January 5, 2009 | Reply

  11. […] I have just been swamped with other projects. I still have every intention of releasing the “TinyUrl” like feature for SharePoint in the near […]

    Pingback by Update! « Paul Liebrand’s Weblog | January 14, 2009 | Reply

  12. Hello Paul,

    I am looking into an idea that allows you to put a link into a SharePoint hosted document, which then redirects you to an external webpage. The idea of doing this is if/when the external link changes, you can simply change the redirection destination to the new destination without having to edit the document.

    Will your feature do this, or how would you best appoach this task?


    Comment by PJ | February 9, 2009 | Reply

  13. PJ,

    Yes. The concept is to have all the information stored within a SharePoint list so you can easily adjust the “long” URL associated to a “short” URL if it changes.


    Paul Liebrand

    Comment by liebrand | February 13, 2009 | Reply

  14. Hello Paul,

    I’m sure I speak for everyone here – if you need anything to help bring this project forward, please let us know. Like many others, I’ve been stuck with a MOSS site that has many 200+ characters paths and this would be a blessing to have.

    – DRC

    Comment by DRC | February 26, 2009 | Reply

  15. Paul- this is great! my company email limit on hyperlinks is 132 characters (which results in too many broken links to content within our MOSS environment) Any idea when you’ll be blessing the world with your solution?

    Comment by Steve | March 11, 2009 | Reply

  16. Great idea. Hope to see the code on codeplex, or up on your blog here sometime in the future.

    Comment by Richard Harbridge | March 16, 2009 | Reply

  17. Any news on this, and updates?

    Comment by Joel | March 26, 2009 | Reply

  18. Can we contribute a little monetary wise to assist and compensate your efforts out of your busy schedule? We would all really appreciate when you’re able to publish your efforts. Thanks.

    Comment by John | April 2, 2009 | Reply

  19. How can I be notified of this when you are done? I am in dire need of this feature for my sharepoint site.

    Comment by rcapple | May 6, 2009 | Reply

    • rcapple,

      I understand your eagerness for this feature and it is still definitely coming. I’ll be wrapping up and large project I am working on pretty soon and then I’ll be focusing on getting this feature completed and deployed to CodePlex. As far as being notified when it is done, you really have two choices — keep checking back, or follow me on Twitter (@PaulLiebrand). I’ll use both mediums to announce this features arrival.

      Thank you,

      Paul Liebrand

      Comment by liebrand | May 6, 2009 | Reply

  20. Great Paul;
    Nice and eager to have a look at it.
    Mukesh Giri

    Comment by Mukesh Giri | May 8, 2009 | Reply

  21. Excellent, had a look at it some time ago, but didn’t code it up
    my approach was to add an additional field (tinyURL) to the (system) Item + event handler to generate it when created + URL Rewriting

    Comment by stefan demetz | May 13, 2009 | Reply

  22. Any updates on this Paul ?


    Comment by Rick Sheikh | July 1, 2009 | Reply

  23. Hey Paul, I’m eager to take a look at your source code. Is this project still in the works?

    Comment by CD | August 15, 2009 | Reply

    • Yes. I am actually working on it as I type this. Thank you for interest. It should be out fairly soon.

      Comment by Paul Liebrand | August 16, 2009 | Reply

  24. sounds really interesting.
    found your site via twitter and this sound really great.

    Comment by PKo3 | August 16, 2009 | Reply

  25. […] am still planning on releasing an open sourced version of the “TinyUrl" Feature for SharePoint later this year. However, until then you can also keep your eye on MuSH, a URL shorter by Muhimbi. […]

    Pingback by “TinyUrl” Like Feature for SharePoint « Paul Liebrand’s Weblog | June 11, 2010 | Reply

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: