SharePoint 2019 - ShortcutLink.aspx redirects to default zone url

%3CLINGO-SUB%20id%3D%22lingo-sub-2759758%22%20slang%3D%22en-US%22%3ESharePoint%202019%20-%20ShortcutLink.aspx%20redirects%20to%20default%20zone%20url%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2759758%22%20slang%3D%22en-US%22%3E%3CP%3EConsider%20this%3A%3CBR%20%2F%3ESHP%20web%20app%20with%20two%20zones%3A%3CBR%20%2F%3EDefault%20zone%20-%20default.myonpremsharepoint.int%3CBR%20%2F%3EIntranet%20zone%20-%20intranet.myonpremsharepoint.int%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECreate%20document%20library%20in%20modern%20team%20site.%3C%2FP%3E%3CP%3EAdd%20link%20pointing%20to%20other%20site%20(eg.%3A%20%3CA%20href%3D%22https%3A%2F%2Fintranet.myonpremsharepoint.int%2Fsites%2Fsomesite2%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fintranet.myonpremsharepoint.int%2Fsites%2Fsomesite2%3C%2FA%3E)%26nbsp%3Bto%20that%20document%20library.%26nbsp%3B%3C%2FP%3E%3CP%3ELink%20gets%20%22translated%22%20by%20SHP%20to%20something%20like%20this%3A%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fintranet.myonpremsharepoint.int%2Fsites%2Fsomesite1%2F_layouts%2F15%2FShortcutLink.aspx%3F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fintranet.myonpremsharepoint.int%2Fsites%2Fsomesite1%2F_layouts%2F15%2FShortcutLink.aspx%3Fsiteid%3D%5Bguid%5D%26amp%3Bwebid%3D%5Bguid%5D%3C%2FA%3E%3CBR%20%2F%3EIf%20the%20link%20is%20pointing%20to%20the%20same%20site%2C%20everything%20works%20just%20fine.%20If%20the%20link%20points%20to%20other%20site%2C%20like%20in%20the%20example%20mentioned%20above%2C%20user%20gets%20redirected%20to%20the%20correct%20site%2C%20but%20using%20the%20default%20zone%20url.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20this%20example%2C%20that%20would%20be%20%3CA%20href%3D%22https%3A%2F%2Fdefault.myonpremsharepoint.int%2Fsites%2Fsomesite2%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fdefault.myonpremsharepoint.int%2Fsites%2Fsomesite2%3C%2FA%3E%26nbsp%3Binstead%20of%20%3CA%20href%3D%22https%3A%2F%2Fintranet.myonpremsharepoint.int%2Fsites%2Fsomesite2%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fintranet.myonpremsharepoint.int%2Fsites%2Fsomesite2%3C%2FA%3E%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3ESHP%20Patch%20level%3A%20September%202021%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2759758%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3E2019%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDocument%20Library%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Eonprem%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
New Contributor

Consider this:
SHP web app with two zones:
Default zone - default.myonpremsharepoint.int
Intranet zone - intranet.myonpremsharepoint.int

 

Create document library in modern team site.

Add link pointing to other site (eg.: https://intranet.myonpremsharepoint.int/sites/somesite2) to that document library. 

Link gets "translated" by SHP to something like this:
https://intranet.myonpremsharepoint.int/sites/somesite1/_layouts/15/ShortcutLink.aspx?siteid=[guid]&...
If the link is pointing to the same site, everything works just fine. If the link points to other site, like in the example mentioned above, user gets redirected to the correct site, but using the default zone url.

 

In this example, that would be https://default.myonpremsharepoint.int/sites/somesite2 instead of https://intranet.myonpremsharepoint.int/sites/somesite2 

SHP Patch level: September 2021

0 Replies