Forums

Skip Navigation LinksHome / Developer Network / Forums / Sitefinity Older Versions (3.x): Bugs & Issues > News View - Extensionless URLs

News View - Extensionless URLs

  • Eric avatar

    Posted on Dec 20, 2011 (permalink)

    Hi All,
    I've just been able to enable the extensionless URLs feature on my site, with one exception.

    I have the NewsView control on a couple pages and the "Full Story" link still points to a page with the ".aspx" extension.
    ie.
    http://mydomain.com/News_FullStory/11-12-20/The_Title.aspx

    That being said, if I enter in the URL without the ".aspx", it also works fine.
    ie. http://mydomain.com/News_FullStory/11-12-20/The_Title 

    How do I go about modifying the "Full Story" link so that it doesn't have the ".aspx"?

    Thanks in advance,
    Eric

    Reply

  • Radoslav Georgiev Radoslav Georgiev admin's avatar

    Posted on Dec 22, 2011 (permalink)

    Hi,

    Can you please open your web config and go to the <cmsEngine> configuration section? Then, please edit the format for generation of news urls, not to include the extension. After you do this you will need to perform a dummy edit on your existing news items, so that they do not use the extension any more. Sample config below:
    <add name="News" urlRewriteFormat="[Publication_Date]/[Title]" urlDateTimeFormat="yy-MM-dd" urlWhitespaceChar="_" visible="False" defaultMetaField="Title" securityProviderName="" allowVersioning="True" applicationName="/News" versioningProviderName="" commentsModeration="true" connectionStringName="GenericContentConnection" type="Telerik.News.Data.DefaultNewsProvider, Telerik.News.Data"/>


    Regards,
    Radoslav Georgiev
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

    Reply

  • Eric avatar

    Posted on Dec 22, 2011 (permalink)

    That's perfect!

    Thank you very much

    Reply

  • Register for webinar
Skip Navigation LinksHome / Developer Network / Forums / Sitefinity Older Versions (3.x): Bugs & Issues > News View - Extensionless URLs