How to provide a link a specific POST within a topic when user not logged in?

Get help with installation and running phpBB 3.3.x here. Please do not post bug reports, feature requests, or extension related questions here.
User avatar
RiTz21
Registered User
Posts: 218
Joined: Tue May 31, 2005 5:20 pm

How to provide a link a specific POST within a topic when user not logged in?

Post by RiTz21 »

Greetings,

I have a public Website, which has a link to a specific (private) POST within a topic on a PHPBB v3.3.11 forum.
When I click on that link, I am redirected perfectly to the post (which happens to be the last post of the topic).

BUT if I log out of PHPBB and click on the link from the Website, I am requested to Login first (which is fine as the topic is private). After logging in, I am redirected to the START of the topic, and NOT the last post of the topic!!

Is there a way to adjust the link to specifically GO TO the last post of the topic?

Example:
Website link ends with: .../viewtopic.php?p=112360#p112360
After logging in back, the link is: .../viewtopic.php?p=112360&sid=d6323579f95b56574db59bc11f164e45
(and shows the start of the topic)

Thanks!
Last edited by RiTz21 on Fri Sep 13, 2024 2:00 am, edited 1 time in total.
User avatar
janus_zonstraal
Registered User
Posts: 6588
Joined: Sat Aug 30, 2014 1:30 pm

Re: How to provide a link a specific POST within a Thread when user not logged in?

Post by janus_zonstraal »

How can a link change?
Can you post a link to that post on your website?
Sorry! My English is bat ;) !!!
User avatar
RiTz21
Registered User
Posts: 218
Joined: Tue May 31, 2005 5:20 pm

Re: How to provide a link a specific POST within a Thread when user not logged in?

Post by RiTz21 »

janus_zonstraal wrote: Thu Sep 12, 2024 9:57 pm How can a link change?
Can you post a link to that post on your website?
The link changes after going through the process of Logging in the forums (as shown in my O.P.)

Yes, I posted a link to that exact POST on the Website. But after the process of logging in, the link now refers only to the start of the thread (which has dozens of posts therein)
User avatar
janus_zonstraal
Registered User
Posts: 6588
Joined: Sat Aug 30, 2014 1:30 pm

Re: How to provide a link a specific POST within a Thread when user not logged in?

Post by janus_zonstraal »

A link written to the database will not change.
Try it with this link to a random post:
.viewtopic.php?p=16030411#p16030411
Sorry! My English is bat ;) !!!
User avatar
RiTz21
Registered User
Posts: 218
Joined: Tue May 31, 2005 5:20 pm

Re: How to provide a link a specific POST within a Thread when user not logged in?

Post by RiTz21 »

janus_zonstraal wrote: Thu Sep 12, 2024 10:11 pm A link written to the database will not change.
Try it with this link to a random post:
.viewtopic.php?p=16030411#p16030411
The Original Link is located on a Website (not related to PHPBB) - so I am unsure what you mean by the DataBase comment.
The link you posted for the random post uses exactly the same syntax as my example above.

I get the feeling am I not explaining the issue correctly. Let me retry;

On a website not related to PHPBB, I have a link that points to a specific post on a private PHPBB forum (You can't access the link directly unless you are logged in the Forums)

If I am currently logged in that PHPBB forum and click the link on the Website, all is well; I am directed to the exact post as pointed by the link.

If I log out of the PHPBB forum, and return to the Website and press the link, I am directed to Log In the PHPBB forum; Once I log in, I am directed to the Beginning of the Thread, and not the exact post that the link pointed to...

Does this makes any sense?
User avatar
janus_zonstraal
Registered User
Posts: 6588
Joined: Sat Aug 30, 2014 1:30 pm

Re: How to provide a link a specific POST within a Thread when user not logged in?

Post by janus_zonstraal »

I mean a link is a link, the can't change on a website, but why are you here asking questing about non phpbb websites?
Sorry! My English is bat ;) !!!
User avatar
RiTz21
Registered User
Posts: 218
Joined: Tue May 31, 2005 5:20 pm

Re: How to provide a link a specific POST within a Thread when user not logged in?

Post by RiTz21 »

janus_zonstraal wrote: Fri Sep 13, 2024 4:38 am I mean a link is a link, the can't change on a website, but why are you here asking questing about non phpbb websites?
I obviously keep failing at explaining the issue with viewing a specific (and private) post on a PHPBB forum when the user needs to log-in first. The login process changes the original link.

I do not how to explain in simpler terms.

Is anyone else understanding what I am attempting to convey?
User avatar
Toxyy
Registered User
Posts: 964
Joined: Mon Oct 24, 2016 3:22 pm
Location: Namek

Re: How to provide a link a specific POST within a Thread when user not logged in?

Post by Toxyy »

Sounds like more of a bug/making internal behavior more consistent.
ou might consider opening a ticket on github and a ticket here: https://tracker.phpbb.com/secure/Dashboard.jspa
and making a suggestion in the ideas forum: ideas
I am a web developer/administrator, specializing in forums. If you have work you need done or are too lazy to do, pm me!

Some of my extensions:
[3.3][BETA] Post Form Templates || [3.3][BETA] Anonymous Posts || [3.2][3.3][BETA] ACP Merge Child Forums || [3.2][BETA] Sticky Ad || [3.2][DEV] User Delete Topics || [3.3][DEV] Moderate While Searching || [3.3][RC] Short Number Twig Extension
User avatar
thecoalman
Community Team Member
Community Team Member
Posts: 6288
Joined: Wed Dec 22, 2004 3:52 am
Location: Pennsylvania, U.S.A.

Re: How to provide a link a specific POST within a Thread when user not logged in?

Post by thecoalman »

Just tested this here, the anchor #p112360is stripped on the redirect hence the reason it's showing top of page.

As already note you can report as bug. https://tracker.phpbb.com/secure/Dashboard.jspa
“Results! Why, man, I have gotten a lot of results! I have found several thousand things that won’t work.”

Attributed - Thomas Edison
User avatar
RiTz21
Registered User
Posts: 218
Joined: Tue May 31, 2005 5:20 pm

Re: How to provide a link a specific POST within a Thread when user not logged in?

Post by RiTz21 »

thecoalman wrote: Fri Sep 13, 2024 6:27 am Just tested this here, the anchor #p112360is stripped on the redirect hence the reason it's showing top of page.
As already note you can report as bug. https://tracker.phpbb.com/secure/Dashboard.jspa
Yes, Exactly that!!
I am glad I am not NuTz :D

Feel free to report this as a bug to the PHPBB admins if you wish... you'd better at explaining it than I am as per my experience in this thread.

Cheers!

Return to “[3.3.x] Support Forum”