I have a content editor webpart which references a HTML file
It has the below code
SCRIPT
<script>
function changeimageurl(imagepath){
document.getElementById("slidecontainer").src=imagepath;
};
</script>
` HTML
<li onclick='changeimageurl("../gallery/_w/Slide1_JPG.jpg")' > "SOME LINK"</li>
This works fine when I directly go to page with url like
http://sitelink.com/sites/SUBSITE/webpages/gallery.aspx
But when I click on the quick launch on left side, it is loading page as
http://sitelink.com/sites/subsite/_layouts/15/start.aspx#/webpages/gallery.aspx
When the page loads like this, the changeimageurl function is undefined and the onclick is not working
Can I make the quick launch load the direct page instead of relative page with #/webpages
?
Or is there a work around?