Web Connection
Default templates script tags missing tilde in path
Gravatar is a globally recognized avatar based on your email address. Default templates script tags missing tilde in path
  Mike McDonald
  All
  Jan 18, 2019 @ 07:12pm

Rick -

In _pagefootertemplate.html there are a few script tags..

<script src="lib/jquery/dist/jquery.min.js"></script>
<script src="scripts/ww.jquery.min.js"></script>
<!-- add these only if you use Bootstrap dropdowns or modals -->
<script src="lib/popper.js/dist/popper.min.js"></script>
<script src="lib/bootstrap/dist/js/bootstrap.min.js"></script>

Should these be prefixed with "~/" like the CSS links in the _pageheadertemplate.html file?

The _pagetemplate.html has different links..

<script src="../lib/jquery/dist/jquery.min.js"></script>
<script src="../scripts/ww.jquery.min.js"></script>

<!-- add these only if you use Bootstrap dropdowns or modals -->
<script src="../lib/popper.js/dist/popper.min.js"></script>
<script src="../lib/bootstrap/dist/js/bootstrap.min.js"></script>

Edit : The ../ links in _pagetemplate.html are definitely wrong - they don't load unless changed to start with "lib/" or "~/lib/".

- Mike McDonald

Gravatar is a globally recognized avatar based on your email address. re: Default templates script tags missing tilde in path
  Rick Strahl
  Mike McDonald
  Jan 19, 2019 @ 12:51am

They all should have ~/ links.

Checking my templates I had _PageFooter.html that had the ~ missing, but I have no templates with ../.

The only file that should have ..\ is Admin.aspx because it's not running through the Web Connection engine and doesn't auto-expand ~/ Urls.

I've updated the footer page.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: Default templates script tags missing tilde in path
  Mike McDonald
  Rick Strahl
  Jan 20, 2019 @ 10:02am

Rick -

..I have no templates with ../.

They were in _pagetemplate.html from WC 7.00, but the 7.02 version has the tildes.

- Mike McDonald

© 1996-2019