url segments not propagating

mikotoiii
Moderator
Moderator
Posts: 41
Joined: Wed May 18, 2016 12:09 pm

Re: url segments not propagating

Post 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.
User avatar
axew3
w3all User
w3all User
Posts: 2883
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: url segments not propagating

Post 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?
mikotoiii
Moderator
Moderator
Posts: 41
Joined: Wed May 18, 2016 12:09 pm

Re: url segments not propagating

Post 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.
User avatar
axew3
w3all User
w3all User
Posts: 2883
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: url segments not propagating

Post by axew3 »

i've not understand (as +- ever maybe): have you resolved/fixed all?
User avatar
floxshifu
User www
User www
Posts: 57
Joined: Sun Sep 18, 2016 6:14 pm

Re: url segments not propagating

Post 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 :)
mikotoiii
Moderator
Moderator
Posts: 41
Joined: Wed May 18, 2016 12:09 pm

Re: url segments not propagating

Post 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
Locked