Problems, need help? Have a tip or advice? Post it here.
3 posts Page 1 of 1
Hi there,

We've been having this issue for some time that couch sometimes randomly returns "undefined" as page name and thus gives a 404 when navigating to a page though our 'hard-coded' and working navigation (not dynamic, see code below). Even google picked this up. But as said its only random, if you click on the link again it works. Its also hard to reproduce instantly as its happens randomly maybe a few times a day... What could be behind this, its driving us nuts?

Our code looks like this and we're using pretty URL's with a couch-generated htaccess:
Code: Select all
<a href="<cms:link 'kontakt.php' />" class="nav-link <cms:if k_template_name=='kontakt.php'>active</cms:if>" >Kontakt</a>


The falsely generated URL would look like this:
http://www.pagename.ch/undefined

Kind regards,
Laduma
Hi :)
Your published code is fine.
Problem is with malware, JavaScript or poor browser addon. It's discussed here extensively: http://stackoverflow.com/questions/1101 ... nce-12-jun
Join COUCH:TALK channel here https://t.me/couchcms_chat
Ryazania — a framework to boost productivity with Add-ons viewtopic.php?f=2&t=13475
Support my efforts to help the community https://boosty.to/trendo/donate
Hello,

Thanks a lot for reviewing! Upon reading the link you posted I think I noticed what our problem was (indeed javascript)! Should've thought of that damnit...

Anyway I think this is solved and is no issue of Couch CMS!

Kind regards,
Laduma
3 posts Page 1 of 1