Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2021-08-13 08:09:37
- albatros69
- Member
- Registered: 2021-06-17
- Posts: 21
Changing URL pattern of existing articles
Dear all,
On a textpattern instance (not yet in prod), I’ve changed the URL pattern of a section. However, it seems that the change is only applied to new articles in this section or if I unpublish/publish an article. If I try to unpublish/publish all the ~50 articles (via multi-edit), I don’t see the expected behavior (the url pattern is still the old one).
Is it possible to propagate the change on all the existing articles?
Regards,
Offline
Re: Changing URL pattern of existing articles
That’s weird, since URLs are not stored anywhere, but generated dynamically. Try disabling all cache/plugins?
Offline
#3 2021-08-14 07:09:58
- albatros69
- Member
- Registered: 2021-06-17
- Posts: 21
Re: Changing URL pattern of existing articles
Even without any plugin and even using private mode, the url pattern is still the raw one (?id=). It’s even not the default one (/title)…
I thought that the URL pattern was only dependent on the section the article belongs to. And as you said, the permanent URL is not stored anywhere.
What could trigger the permlink to fallback on the ?id= mode?
Offline
Re: Changing URL pattern of existing articles
albatros69 wrote #331337:
Even without any plugin and even using private mode, the url pattern is still the raw one (?id=). It’s even not the default one (/title)…
I thought that the URL pattern was only dependent on the section the article belongs to. And as you said, the permanent URL is not stored anywhere.
What could trigger the permlink to fallback on the ?id= mode?
Is your site on line or in a local install?
Do you have the htaccess file in place?
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Offline
#6 2021-08-14 08:33:52
- albatros69
- Member
- Registered: 2021-06-17
- Posts: 21
Re: Changing URL pattern of existing articles
etc wrote #331340:
Empty
url_title
would, check Meta fields of your articles, just in case.
You nailed it: for some reasons (the said articles were imported from a different source), url_title was empty. That’s why unpublish/publish was doing the trick, because url_title is updated (but not via multi-edit, which kind of makes sense).
Populating url_title did solve my problem. Thanks again for your help!
Last edited by albatros69 (2021-08-14 08:35:10)
Offline