Fork me on GitHub

Enable short urls into my module  Bottom

  • Hello,

    I've a strange problem, on my menu I've many links which use the short urls (file) format. Into the menu, the link to my module is ok: module-plandusite-main-lang-fr.html

    But when I click on this link, it open a new page and into the URL field of my browser I've: http://localhost/zikula/121/index.php?module=plandusite&func=view〈=fr

    Why this URL is not encoded as a short urls? Why it's not the same link as the one from the menu? Very strange, maybe that I must include some code into my module to support short urls?

    edit: With short urls (directory) it works fine, and with short urls (files) it's only the link to my module which have this problem, it works fine for all others modules.



    edited by: Yokav, datetimebrief
  • I think you have to inlcude some encode/decode functions in your module. They reside in pnuserapi.php normally. In News the functions are overridable by placing them outside pnuserapi.php itself and in a subdir pnuserapi (check out http://code.zikula.o…ules/News/pnuserapi).
    Or check out the file of Pages http://code.zikula.o…trunk/pnuserapi.php.

    --
    campertoday.nl, Module development, Dutch Zikula Community

This list is based on users active over the last 60 minutes.