Page 7 of 8

Re: url segments not propagating

Posted: Wed Nov 09, 2016 4:44 pm
by mikotoiii
Since you're using BBCode to achieve your goal, you'll need to make a custom BBCode.

In ACP under Posting, you'll see BBCodes, you'll want to make a new one here. I haven't tested this, but in theory it should work:
BBCode Usage: [externalLink]{URL}[/externalLink]
HTML replacement: <a href="{URL}" target="_blank">{URL}</a>
If you want the link text to be different than the url then
BBCode Usage: [externalLink={URL}]{TEXT}[/externalLink]
HTML replacement: <a href="{URL}" target="_blank">{TEXT}</a>
Then you'd change your bbcode surrounding your link to [externalLink]http://yourURL.here[/externalLink] OR to [externalLink=http://yourURL.here]This is the text on the page[/externalLink]

You can view the topic I nabbed this from here for potentially more detailed instructions: https://www.phpbb.com/community/viewtop ... #p12997110

Note: this will make the external link you want open in a new window / tab.

Hopefully this helps you.

Re: url segments not propagating

Posted: Wed Nov 09, 2016 9:14 pm
by axew3
hello, so, reverting to the topic title (and excuse me for all bad exits i do, when i do not well read/understand English i look and, maybe answering on fly while doing something else .... i'm sorry!) Have you try
history.pushState
Or window.history.pushState
in place of history.replaceState

what browser are you on/have you test?

Re: url segments not propagating

Posted: Wed Nov 09, 2016 10:00 pm
by mikotoiii
The history.replaceState tracking was a false symptom, which was usefull in tracking down the actual problem, which was that $ jQuery thing which i eventually found and fixed.

Re: url segments not propagating

Posted: Wed Nov 09, 2016 10:46 pm
by axew3
i've not understand (as +- ever maybe): have you resolved/fixed all?

Re: url segments not propagating

Posted: Wed Nov 09, 2016 11:28 pm
by floxshifu
mikotoiii wrote:Since you're using BBCode to achieve your goal, you'll need to make a custom BBCode.

In ACP under Posting, you'll see BBCodes, you'll want to make a new one here. I haven't tested this, but in theory it should work:
BBCode Usage: [externalLink]{URL}[/externalLink]
HTML replacement: <a href="{URL}" target="_blank">{URL}</a>
If you want the link text to be different than the url then
BBCode Usage: [externalLink={URL}]{TEXT}[/externalLink]
HTML replacement: <a href="{URL}" target="_blank">{TEXT}</a>
Then you'd change your bbcode surrounding your link to [externalLink]http://yourURL.here[/externalLink] OR to [externalLink=http://yourURL.here]This is the text on the page[/externalLink]

You can view the topic I nabbed this from here for potentially more detailed instructions: https://www.phpbb.com/community/viewtop ... #p12997110

Note: this will make the external link you want open in a new window / tab.

Hopefully this helps you.
Hey,

Thank you for the BBcode tip. But, my problem is still not solved. As i said, I'm using "forum type : Link" in the ACP. So, in the page settings, there is a field "enter here your link to create the forum-link" (here : http://i.imgur.com/lirSLLl.png and :arrow: http://i.imgur.com/yszuI49.png )

So, when I'm using the link of the forum-link on the index... no results. Sorry if I'm not explain really good (I'm french...). I hope you have understand what I mean?

So, the problem is "forum-link" doesn't work in the index page with iframe :)

Re: url segments not propagating

Posted: Thu Nov 10, 2016 5:08 am
by mikotoiii
Gotcha, and no worries on the Feench thing, I know enough to get by while browsing your site.

I didn't understand that it was being set as a forum link type in the acp. Check out this article it might have the solution for you: http://area51.phpbb.com/phpBB/viewtopic ... 71&t=31522