Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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

#2 2021-08-13 08:31:42

etc
Developer
Registered: 2010-11-11
Posts: 5,053
Website GitHub

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

#4 2021-08-14 07:45:50

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,011
Website GitHub Mastodon Twitter

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

#5 2021-08-14 07:53:11

etc
Developer
Registered: 2010-11-11
Posts: 5,053
Website GitHub

Re: Changing URL pattern of existing articles

albatros69 wrote #331337:

What could trigger the permlink to fallback on the ?id= mode?

Empty url_title would, check Meta fields of your articles, just in case.

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

Board footer

Powered by FluxBB