The page seems to be ignoring all
<script> commands in the CEWP. After a bit of hunting down, I came across the following sites:
The latter one was most helpful in that it suggested using
http://<site>/SitePages/page.aspx format instead of
(Thanks John M)
This method seemed to consistently fix the errors I had.
If I changed the navigation list down the left hand site to include the full URL in the link path and saved that section, then the full path as it was entered is not saved, but rather SP has replaced the initial part of the URL
So, even though the
_layouts/15... part has been removed,
How can I stop the hyperlinks from being replaced in the Navigation section?
This is the code that I am testing with
The alert code is never executed using the Navigation links.
However, if I remove the first line (
<script src=.....), then the alert is always executed in every instance.