Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 25064

Mismatch in SP2013 when it adds /15/ to path of virtual directories so it fails to reach a deployed application

$
0
0

I do know that SP2013 adds /15/ automatically to the path of a virtual directory, see here, but is there a way that I can prevent this from happening? I'm using a UrlAction element in a custom action which is all done in XML, nothing that I can change in code:

<?xml version="1.0" encoding="utf-8"?><Elements xmlns="http://schemas.microsoft.com/sharepoint/"><CustomAction Id="MyNsme.CustomMenuItem.ButtonClicked"
                RegistrationType="ContentType"
                RegistrationId="0x0101"
                Location="EditControlBlock"
                ImageUrl="/_layouts/IMAGES/DOCLINK.GIF"
                Sequence="600"
                Title="MyName for SharePoint"
                Description="MyName for SharePoint."><UrlAction Url="/_layouts/MyName.CustomMenuItem/MyName.aspx?ItemId={ItemId}&amp;ListId={ListId}" /></CustomAction></Elements>

The above works fine in SP2010 but in SP2013 the path specified in the UrlAction gets automatically the /15/ addedwhile my application that I try to reach still gets deployed directly to the /_layouts/ folder without the /15/ added so there is a mismatch and it all falls apart. 

My application is part of the same custom action WSP and resides in a /Layout/ directory with the following Deployment Location property: {SharePointRoot}\Template\Layouts and it would solve my problem if I could have this application deployed to the /15/ subdirectory on SP2013.

Any suggestions are very much appreciated.





Viewing all articles
Browse latest Browse all 25064

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>