So I have a SharePoint 2010 site where I have different links on the home page of the site. These links are nothing but aspx pages built in my layout folder.
For ex: My root site page is something like this : http://abcde/sites/xyz/Sitepages/Test.aspx
And on clicking, one of the link on the page, pops up a form. Further, right click over the form and selecting property I get one property as Address which has url as something :
http://abcde/sites/xyz/_layouts/project/Workflow/qwerty/1234.aspx
and this is the URL I am looking for.
For some reason I need to do some css changes in few pages and for that I am looking to add Jquery as to check the form url loaded and then do the appropiate change. I cannot make changes in css class directly as the class is getting referred in other pages too.
Using Window.location.href
or SpPageContext_Info
returns the rooturl i.e. http://abcde/sites/xyz/Sitepages/Test.aspx
Can anyone suggest me how should I fix this or is there any other approach?
Note:I cannot use a Content Editor Webpart on this aspx pages
Thank You!!