Page 1 of 1

Broken URLs in Tomcat

Posted: Tue Jan 13, 2015 12:21 am
by blc-michael
Hello everyone,

I am running the demo on a standalone Tomcat 7, everything is fine but a few urls are broken. By viewing page source, I found out that the context path was duplicate for urls generated from blc: attribute. Particularly:

Code: Select all

<a id="cartLink" class="modalcart" th:href="@{/cart}">
    <img blc:src="@{/img/shopping_cart.png}" alt="Shopping Cart Icon" />
    ...
</a>


gives

Code: Select all

<a id="cartLink" class="modalcart" href="/blc-site/cart">
    <img alt="Shopping Cart Icon" src="/blc-site/blc-site/img/shopping_cart.png" />
    ...
</a>


Other examples include:

<script src="/blc-site/blc-site/js/libs/modernizr-2.5.3.min.js"></script>
<img id="en_US" src="/blc-site/blc-site/img/flags/United-States.png" alt="United States" title="English" />
<img src="/blc-site/blc-site/cmsstatic/img/sauces/Sudden-Death-Sauce-Bottle.jpg?browse" alt="Sudden Death Sauce" />

Can anyone give me a hint on this? Thanks!

Re: Broken URLs in Tomcat

Posted: Tue Jan 13, 2015 3:12 pm
by phillipuniverse
I think you are running into the bug referenced in https://github.com/BroadleafCommerce/Br ... ssues/1208