This project is read-only.
1
Vote

Opening WordViewer-URL fails

description

Hi,
 
after selecting and opening a document in a Office WebApp-Viewer (WordViewer etc.) and selecting "Generate Short URL" from the user menu, I get a valid short URL. But as soon as I try to use it, I get a "file not found" error.
 
The problem is, that the Shortener is queried with the URL (example):
http://sharepoint/_layouts/Liebrand.UrlShortener/GenerateItem.aspx?Source=http://sharepoint/_layouts/WordViewer.aspx?id=/stuff/document.docx&source=http://sharepoint/stuff/Forms/AllItems.aspx
but that generates a short URL for:
http://sharepoint/_layouts/WordViewer.aspx?id=/stuff/document.docx,http://sharepoint/stuff/Forms/AllItems.aspx
which means, that the second "&source=" gets lost.
 
I think it shouldn't be a problem to fix this. A solution would be to rename your query parameter from "Source" to "ShortLinkSource" or something similar.
 
Greetings,
relexx

comments