ASPX templates
Version 7.x > ASPX templates > Commas being appended to Live URL View modes: 
User avatar
Member
Member
dbath-ifreedomdirect - 6/25/2013 10:31:19 AM
   
Commas being appended to Live URL
Kentico Version 7.0

In Kentico CMS after selecting a document in the content tree on the general->properties page; the Live URL: of every page has two commas being appended to the end of the URL e.g. "/apply-now,,". The actual URL is "/apply-now" and the Name path: is "apply-now". The documents URL is created correctly but this is also occurring when using GetDocument transformation on pages to use with Related Documents. The resulting linked URL also has two commas appended to the end. Any ideas as to what could be causing this issue? Any help would be appreciated thanks!

User avatar
Member
Member
kentico_sandroj - 6/25/2013 4:43:11 PM
   
RE:Commas being appended to Live URL
Hello,

Are the URLs with commas appended functional? Does the page load if you access that location? It is more than likely that this is ocurring in IIS - have you checked the URL Rewriting rules?

How are the documents being created? Also, how are the forbidden characters in URLs configured?

Regards,
Sandro

User avatar
Member
Member
dbath-ifreedomdirect - 6/27/2013 1:41:53 PM
   
RE:Commas being appended to Live URL
Hi,

Thanks for the quick reply. As to your first question the URL's are not functional with the commas it gives a 404 error. All the pages are created in the content tree as a page (menu item). Using the aspx templates that we have created. We disabled all redirects and URL rewrites on our server and the problem is still occurring.

Forbidden characters are at default settings and I have reset them to default to ensure nothing funny was occurring there.

My question would be how is Kentico generating the LIVE URL: for each page? Where does that information come from? If we could follow that path back then we should be able to find a solution.

I have attached two images to help clarify. Thanks again for your help!
The second screenshot is taken from production however the same problem exists on both our production and stage servers.
User image
User image

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 6/28/2013 1:07:38 AM
   
RE:Commas being appended to Live URL
Hi,

What are you Friendly URLs setting in Site Manager -> Settings -> URLs & SEO? Isn't it possible that there are two commas instead of semicolons?

Best regards,
Juraj Ondrus

User avatar
Member
Member
dbath-ifreedomdirect - 6/28/2013 9:34:34 AM
   
RE:Commas being appended to Live URL
Hi,

I appreciate the help you guys are providing. As to your question we do not have multiple friendly extensions listed, just .aspx. So there are no commas or semi-colons seperating multiple extensions as there are no other extensions present. Every other setting on that page is at default settings.


Thanks

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 7/1/2013 1:14:49 AM
   
RE:Commas being appended to Live URL
Hi,

Just to be sure - have you checked the global as well as the site level settings? this is pretty common that on global level is set something but it is not inherited on site level. I have never seen issue like this and I do not see any other reason why the commas should be added to the URL.

Best regards,
Juraj Ondrus

User avatar
Member
Member
dbath-ifreedomdirect - 7/1/2013 10:15:52 AM
   
RE:Commas being appended to Live URL
Hi,

I went and verified both the global and site settings and can't see anything there. After pulling the source of the Kentico page I found that it is not double commas but instead double low-9 quotation mark. I dont know if that changes anything from your side, but felt it would help to have the correct information. Do you have any idea where the live url is getting the URL from? If I knew where it was pulling the URL from or how it is being populated it would help me to track down the issue.

Thanks!

User avatar
Member
Member
dbath-ifreedomdirect - 7/1/2013 10:27:34 AM
   
RE:Commas being appended to Live URL
Here is the source of the Kentico page that pertains to the Live URL

<td>
<span id="m_c_lblNamePath">/apply-now</span>
</td>
</tr>
<tr>
<td class="FieldLabel">
<span id="m_c_lblLiveURLTitle">Live URL:</span>
</td>
<td>
<a id="m_c_lnkLiveURL" href="/apply-now%e2%80%9e" target="_blank">/apply-now„</a> </td>

Don't know if this will help answer my question or not, but as you can see the name path shows the correct URL and the LIVE-URL has the inverted quote appendage.

Thanks

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 7/2/2013 1:30:38 AM
   
RE:Commas being appended to Live URL
Hi,

Thank you! This is really great info - what is the document name? Isn't it possible that it is part of the document name set by the editor? Or, does this happen to any document?

I would try adding this character to the Forbidden URL characters setting so they are automatically removed from the URL.

Best regards,
Juraj Ondrus

User avatar
Member
Member
dbath-ifreedomdirect - 7/2/2013 9:22:16 AM
   
RE:Commas being appended to Live URL
Hi,

The double-9 low quotation marks are being added to every document in our content tree except for our home page. It is not a template issue because I can change the home page template to any template in our site and it still doesn't append the quotes. I also have changes other documents to use the home page template and the quotes still appear. I also tried what you suggested and added them to the forbidden URL character list, however they still appear after the URL.

The only way I have been able to remove them is with a GetdocumentURL.Replace("„","") string. This has fixed the related document URL's however it doesn't solve the underlying problem, and our Kentico generated site map still has the double quotes appended to every URL, and we still cant merely click the LIVE URL link on each page to access the live page quickly. Any other hints, tips, or suggestions to try would be appreciated!

Thanks

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 7/2/2013 9:52:40 AM
   
RE:Commas being appended to Live URL
Hi,

Kentico is not adding them for sure - it would happen for others too. How are you creating the documents? What are you putting as the document name (or whatever field is set to be the source of the name and/or alias path)?
Are you using any custom event handlers?
What customizations were made to the CMS?

Best regards,
Juraj Ondrus

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 7/18/2013 11:06:05 PM
   
RE:Commas being appended to Live URL
Have you queried the database for that particular document? If you run the query
SELECT *
FROM View_CMS_Tree_Joined
WHERE NodeAlias LIKE ='/apply-now%'
what do you see for the NodeAliasPath? DocumentName? My guess, because the name/title has the double comma in it, is when the document was created there were some forbidden characters in the name and they are "stuck" in the table. Run the query and see what is returned. Second, attempt to edit the document name and URL alias. Third and last resort would be to update the database table manually.