News module links to detail pages - revisited
Posted: Tue Apr 07, 2020 12:21 pm
Hi. Bailiwick posted about a problem with the URL of a News detail item having "/d,news-detail" at the end of the URL.
Here is link to that post made on 27 Sep 2019:
viewtopic.php?f=8&t=81636&p=344063&hili ... rl#p344063
The post is over 6 months and so no further comment can be made, hence this new post from me as I too am having this problem.
My CMSMS version is 2.2.13.
I added a brand new News item (not imported from an old version) and viewed the post with different settings in config and the News settings.
Here are my test outputs which I carried on my local wampserver:
Test 1:
config / url_rewriting is not set
News settings: no default page set for detail view
Resultant url:
localhost/blah-blah/index.php?mact=News,cntnt01,detail,0&cntnt01articleid=27&cntnt01detailtemplate=news-detail&cntnt01returnid=34
Test 2:
config / url_rewriting is set to mod_rewrite
News settings: no default page set for detail view
Resultant url:
localhost/blah-blah/news/27/34/This-is-a-new-article/d,news-detail
Now the d,news-detail bit appears at end of this url.
Test3:
config / url_rewriting is set to mod_rewrite
News settings: defailt page is set for detail view
Resultant url:
localhost/blah-blah/news/27/117/This-is-a-new-article/d,news-detail
The d,news-detail is still present.
The only way I can get rid of this is to set the News item with an explicit value in its URL (slug) field.
Does anyone know why this extra bit is put out?
Here is link to that post made on 27 Sep 2019:
viewtopic.php?f=8&t=81636&p=344063&hili ... rl#p344063
The post is over 6 months and so no further comment can be made, hence this new post from me as I too am having this problem.
My CMSMS version is 2.2.13.
I added a brand new News item (not imported from an old version) and viewed the post with different settings in config and the News settings.
Here are my test outputs which I carried on my local wampserver:
Test 1:
config / url_rewriting is not set
News settings: no default page set for detail view
Resultant url:
localhost/blah-blah/index.php?mact=News,cntnt01,detail,0&cntnt01articleid=27&cntnt01detailtemplate=news-detail&cntnt01returnid=34
Test 2:
config / url_rewriting is set to mod_rewrite
News settings: no default page set for detail view
Resultant url:
localhost/blah-blah/news/27/34/This-is-a-new-article/d,news-detail
Now the d,news-detail bit appears at end of this url.
Test3:
config / url_rewriting is set to mod_rewrite
News settings: defailt page is set for detail view
Resultant url:
localhost/blah-blah/news/27/117/This-is-a-new-article/d,news-detail
The d,news-detail is still present.
The only way I can get rid of this is to set the News item with an explicit value in its URL (slug) field.
Does anyone know why this extra bit is put out?