Extensionless URL for subpage not working. Subpage still showing .aspx extension.

Manmath Kulkarni asked on January 5, 2017 10:51

Hi,

I am trying to use extensionless URLS. I have done everything mentioned in the link below. https://docs.kentico.com/k9/configuring-kentico/configuring-page-urls/extensionless-and-custom-urls

Also I have set following to true in web.config and Friendly URL extensions and Files Friendly URL extensions to empty.

<modules runAllManagedModulesForAllRequests="true">

I am getting extensionlesss URL for main pages but for sub pages its still showing .aspx extension.

Kindly help me to resolve this.

Best Regards,
Manmath

Correct Answer

Jan Hermann answered on January 5, 2017 22:35

Yes, it could be caching!

0 votesVote for this answer Unmark Correct answer

Recent Answers


Jan Hermann answered on January 5, 2017 11:11

How do you request those sub pages? Do you click just some item in the menu? If so, please check if the link is generated without the extension.

0 votesVote for this answer Mark as a Correct answer

Manmath Kulkarni answered on January 5, 2017 11:19

Hi Jan,

Thanks for your reply.

I am adding link in CMSEditableRegion and adding link as a Content. While adding contebnt as URL its not showing .aspx extension. But when I hover over link or visits the page it shows .aspx extension.

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on January 5, 2017 15:12

If it is for a link causing a postback make sure you add this key to the web.config.

<add key="CMSUseExtensionOnPostback" value="false"/>

Anytime I setup extensionless URLs I add that key.

0 votesVote for this answer Mark as a Correct answer

Jan Hermann answered on January 5, 2017 15:50

Do you mean you add links within editor using Insert ling button from the Content tab? What is the url format when you select a page there?

0 votesVote for this answer Mark as a Correct answer

Manmath Kulkarni answered on January 5, 2017 16:57

Hi Brenden, I had already added but somehow it wasn't working.

@Jan I am adding link using "Insert/Edit link" from HTML Editor for CMSEditableRegion from the "Content" tab. URL format is as follows: ~/Career/Vacancy2

But now its working. Can this be because of browser cache as it was still showing .aspx.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.