dongtong2021 2014-05-08 10:14 采纳率: 0%
浏览 18
已采纳

Concrete5 - 在SiteMap“访问”链接中使用漂亮的URL

Using Concrete5 v5.6.3.1 I have pretty URLs enabled and they are working as expected.

Let's say I created a page named 'test' that is accessible from the pretty URL:

http://<root_url>/my_awesome_test

When I click on the page in the SiteMap UI and choose 'visit' I'm still linked to the non-pretty, cID-based URL:

http://<root_url>/index.php?cID=139

Since I have pretty URLs enabled, is there any way for the 'visit' link on the sitemap to use the pretty URL instead of the cID-based one?

I'm not saying that I want to remove the cID-based URL, that's obviously required as a fallback, but when pretty URLs are enabled it just doesn't make sense to not also use them, even on the internal SiteMap UI. I often find myself wanting to link a page I'm working on in the sitemap, and then always have to look under properties to get the pretty URL, which is really tedious.

  • 写回答

1条回答 默认 最新

  • duandao6414 2014-05-08 13:29
    关注

    From what I can tell it looks like that the sitemap is using some javascript that is hard coded to use the cID. I'd agree that it would be nice for this to be implemented. I doubt you have much luck with getting a pull request into the 5.6 version, but you could always suggest it be implemented in 5.7 (if it isn't already?)

    Here's the code where it's getting set currently in 5.6: https://github.com/concrete5/concrete5/blob/51badcdb1f00b5ba07ba11e02e4422e76da107ac/web/concrete/js/ccm_app/sitemap.js#L45

    And here's where you can report an issue for the new 5.7 version if you'd like to see it implemented: https://github.com/concrete5/concrete5-5.7.0/issues

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 win10权限管理,限制普通用户使用删除功能
  • ¥15 minnio内存占用过大,内存没被回收(Windows环境)
  • ¥65 抖音咸鱼付款链接转码支付宝
  • ¥15 ubuntu22.04上安装ursim-3.15.8.106339遇到的问题
  • ¥15 blast算法(相关搜索:数据库)
  • ¥15 请问有人会紧聚焦相关的matlab知识嘛?
  • ¥15 网络通信安全解决方案
  • ¥50 yalmip+Gurobi
  • ¥20 win10修改放大文本以及缩放与布局后蓝屏无法正常进入桌面
  • ¥15 itunes恢复数据最后一步发生错误