There is a setting to not have the trailing slash however generally people prefer it for SEO and other reasons...
Instead I would recommend that you make the references to your css absolute with a preceding slash, e.g. "/css/mycss.css" then it will work correctly from anywhere.
If you really want to remove it change the "umbracoUseDirectoryUrls" app setting in web.config to false.
Rendering Child Items With Macro
When i render child items with a macro and then list page.Url.
The Url is say for example :
www.domain.com/portfolio-item/
It adds a slash on the end of the url. This causes it to not get the CSS from my stylesheets.
How i can i remove this forwards slash by default?
Hi James,
There is a setting to not have the trailing slash however generally people prefer it for SEO and other reasons...
Instead I would recommend that you make the references to your css absolute with a preceding slash, e.g. "/css/mycss.css" then it will work correctly from anywhere.
If you really want to remove it change the "umbracoUseDirectoryUrls" app setting in web.config to false.
Jeavon
Thank you Jeavon.
Quick reply. Didnt realise it was that simple of a fix. I just put "/" before all my CSS references.
Thanks again for your response.
You're very welcome! I just posted a link in your other topic to the "Creating a basic website" guide, I would highly recommend a read.
Also Umbraco.tv has some excellent video tutorials http://umbraco.tv/videos/umbraco-v7/implementor/ (some of them are free and some require a subscription)
is working on a reply...