Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2020-03-25 10:19:55

alfbja
Member
Registered: 2018-02-05
Posts: 21

Link section1/artcile1 > section2/article2 ????

Hi

1) new article (article1) in section1

2) other article (article2) in section2

3) link article1 > article2

<a href=“donnees/test chemin” title=“ljklj”>mkmùk*k</a>

4) URL !!! = section1/section2/article2

https://mysite.com/section1/donnees/test%20chemin

5) = 404

6) i have cleaned the DB > all OK

i use the latest version DEV

Thanks

Take care

Last edited by alfbja (2020-03-25 10:21:30)

Offline

#2 2020-03-25 10:26:39

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,436
Website GitHub

Re: Link section1/artcile1 > section2/article2 ????

Try using a preceding slash in your URL href:

<a href="/donnees/test chemin" title="ljklj">mkmùk*k</a>

That makes it relative to the site root and not relative to the current URL.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#3 2020-03-25 16:57:21

alfbja
Member
Registered: 2018-02-05
Posts: 21

Re: Link section1/artcile1 > section2/article2 ????

Merci,

Unless I am mistaken or omitted something i fear this is serious.

I will check my tools : server and computer

~ 350 articles on the website with TXP but never same bug…

@+

Offline

#4 2020-03-25 17:16:01

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,719
Website

Re: Link section1/artcile1 > section2/article2 ????

I’m not sure where you are putting your link, but you can also do:

<txp:site_url />donnees/test-chemin

(in this case without the preceding slash because txp:site_url already includes it)

Or using txp:permlink:

<txp:permlink id="123" title='<txp:title no_widow />'><txp:title /></txp:permlink>

Both will create an absolute link.

If you are writing a link in the article body using textile, use a preceding slash like bloke mentioned:

"Link text(Link title)":/donnees/test-chemin

(you can see how that works at textile-lang.com).

One last thing: you’re much safer not using spaces in your link urls. That may be causing your problems.


TXP Builders – finely-crafted code, design and txp

Offline

#5 2020-03-25 18:55:43

alfbja
Member
Registered: 2018-02-05
Posts: 21

Re: Link section1/artcile1 > section2/article2 ????

Merci Bloke Merci jakob

Sorry but i continue to check my tools : server and computer

site 1 | My last article > id 322

tomorrow… thank you very much

Offline

#6 2020-03-26 07:13:38

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

Re: Link section1/artcile1 > section2/article2 ????

That is how I used to link to different articles in our site. I since found that <txp:permlink id="##">linked text</txp:permlink> provides me with a more future-proof method which allows me to change url schemas without worrying about internal links in the articles.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#7 2020-03-26 07:26:03

alfbja
Member
Registered: 2018-02-05
Posts: 21

Re: Link section1/artcile1 > section2/article2 ????

Good morning,

7:32 (Paris)

site 1 > Same problem

Check administration’s side

> Site > acticity logs / day = 1

> Activity > 672 connexions (7×96)

| first day > 25 mars 2020 07:52:08 | to present > 26 mars 2020 07:32:18

_________________________________________________

webserver

support desk > [today] Ticket 7106156315

_________________________________________________

site 2 >

Check administration’s side

> Site > acticity logs / day = 1

> Activity > 60 connexions

| first day > 25 mars 2020 08:09:08 | to present > 26 mars 2020 07:44:58

last article > 25 mars 2020 08:12:23 > embed link to other site > OK
second last > Publié le 2020-03-10 Modifié le 2020-03-23 > all correct > 18 links

TEST : a new article with link ? OK

_________________________________________________

FTP on

The 2 sites are updated with TXP 24 mars 2020 ~ 18:27

__________________________________________________

A priori webserver’s problem…

I’ll let you know.

Thanks for your attention

Offline

#8 2020-03-26 09:09:03

alfbja
Member
Registered: 2018-02-05
Posts: 21

Re: Link section1/artcile1 > section2/article2 ????

That is how I used to link to different articles in our site. I since found that <txp:permlink id="##">linked text</txp:permlink> provides me with a more future-proof method which allows me to change url schemas without worrying about internal links in the articles.

Thanks

This is a sensible solution and I would adopt it.

Last edited by alfbja (2020-03-26 09:10:16)

Offline

#9 2020-03-26 09:43:48

alfbja
Member
Registered: 2018-02-05
Posts: 21

Re: Link section1/artcile1 > section2/article2 ????

To be fair, I was focused on my problem. It is still not settled.

But, I would like to thank Colak and jakob for their rapid and appropriate response.

Your Humble Padawan

Offline

#10 2020-03-27 08:05:06

alfbja
Member
Registered: 2018-02-05
Posts: 21

Re: Link section1/artcile1 > section2/article2 ????

I apologize for lost time.

/section/catégorie/titre

The key is here.CATEGORIE failed

Sorry

Last edited by alfbja (2020-03-27 08:08:56)

Offline

Board footer

Powered by FluxBB