More in this section
Forums / Bugs & Issues / News View - Extensionless URLs

News View - Extensionless URLs

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
3 posts, 0 answered
  1. Eric
    Eric avatar
    4 posts
    Registered:
    13 Jun 2011
    21 Dec 2011
    Link to this post
    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

  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    22 Dec 2011
    Link to this post
    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
  3. Eric
    Eric avatar
    4 posts
    Registered:
    13 Jun 2011
    22 Dec 2011
    Link to this post
    That's perfect!

    Thank you very much
Register for webinar
3 posts, 0 answered