luya: Wrong url on news module

What steps will reproduce the problem?

Install, configure and create articles on news modules: https://luya.io/guide/module/luyadev---luya-module-news.

Integrate the module link showed in “#3 Module integration via Block in LUYA CMS” video: https://www.youtube.com/watch?v=nHxV-ke8CVw.

What is the expected result?

Once integrated, the link to the detail (using $ item-> detailUrl) is not being directed to the correct location. I believe it should direct to: http:///www.site.com/news/ID/SLUG but it is directing to http://www.site.com/ID/SLUG.

Also, by going directly to http://www.site.com/**news**, the tag “link” is not rendering the HTML element “<a></a>”. Not even the use of $ item->detailUrl is rendering correctly.

What do you get instead? (A Screenshot can help us a lot!)

luya_news_module

luya_news_module1

Additional infos

Q A
LUYA Version ^1.0@dev
PHP Version 5.6.12
Platform Apache 2.4.16/MariaDB 5.5.43
Operating system GNU/Linux Slackware 14.0

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 15 (14 by maintainers)

Commits related to this issue

Most upvoted comments

hi @nadar and thanks, i check it, the problem solved in my project, now in the home page i have used news block and urls are correct.