Kunena 7.0.4 Released
The Kunena team has announce the arrival of Kunena 7.0.4 [K 7.0.4] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 and issues discovered during the last development stages of K 7.0
Solved Forum Last-Post Anchor Links Scroll to Middle of Page Instead of Top of Post
10 months 2 weeks ago - 10 months 2 weeks ago #233571
by sarrene
Peace is not what you seek in the world, but what you find within yourself.
Hello and good day, It is me again. I have another slight difficulty:
Description:
When clicking a forum post link that includes a #[post-number] anchor (such as #123), the page scrolls to the middle of the post area instead of positioning the post at the top of the viewport.
This occurs for both new topics and replies.If I manually remove the #123 suffix from the URL, the page loads correctly with the post at the top.
I am using the same 9theme (CSS-customized) as a base template that I have used in the past, just upgraded for compatibility. I have repurchased the upgraded version and tested an unmodified updated version on a clean test site and still see the same behavior. In older versions of Kunena, this behavior did not occur. Since I skipped a few version updates during the upgrade, I am not sure exactly when or where this unwanted behavior was introduced.Example:
Unwanted behavior:
gyazo.com/cd4010a7acf7c9c4f009424bda844d66
Desired behavior (previous behavior):
gyazo.com/2b918dbea77f21e4b9780ca220d19802 Reproducibility:
Description:
When clicking a forum post link that includes a #[post-number] anchor (such as #123), the page scrolls to the middle of the post area instead of positioning the post at the top of the viewport.
This occurs for both new topics and replies.If I manually remove the #123 suffix from the URL, the page loads correctly with the post at the top.
I am using the same 9theme (CSS-customized) as a base template that I have used in the past, just upgraded for compatibility. I have repurchased the upgraded version and tested an unmodified updated version on a clean test site and still see the same behavior. In older versions of Kunena, this behavior did not occur. Since I skipped a few version updates during the upgrade, I am not sure exactly when or where this unwanted behavior was introduced.Example:
Unwanted behavior:
gyazo.com/cd4010a7acf7c9c4f009424bda844d66
Desired behavior (previous behavior):
gyazo.com/2b918dbea77f21e4b9780ca220d19802 Reproducibility:
- No core files in Joomla or Kunena have been modified
- Occurs on both new topic and reply post links
- Occurs with all custom CSS and overrides removed
- Occurs using the default Kunena template
- Occurs using the default Joomla template
- Disabled and/or removed "sticky" menu functionality for both my theme and the default
- Cleared all caches (server-side, Joomla cache, browser cache in Chrome, Firefox, Edge)
- Ran Kunena diagnostic tools multiple times
- Recounted Kunena statistics
- Checked and optimized all Kunena and Joomla database tables (removed any overhead)
- Verified behavior using both desktop and mobile browsers
- Disabled all third-party plugins and modules temporarily to rule out conflicts
- Enabled debug mode in Joomla to check for JavaScript or routing errors (none found)
- Verified that no JavaScript scroll or animation scripts are interfering with anchor behavior
- Is there a known reason why the anchor scroll behavior has changed in recent Kunena versions?
- Is there a way to adjust the scroll behavior so the linked post appears at the top of the page rather than the middle?
- Alternatively, is it possible to safely remove the #post-number suffix from links without breaking functionality?
Peace is not what you seek in the world, but what you find within yourself.
Last edit: 10 months 2 weeks ago by xillibit. Reason: Remove attachment
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 973
- Thank you received: 153
10 months 2 weeks ago - 10 months 2 weeks ago #233572
by Pinkeltje
Replied by Pinkeltje on topic Forum Last-Post Anchor Links Scroll to Middle of Page Instead of Top of Post
The message disappears behind your sticky header. Can be solved by adding this to your custom.css
BTW: never put your configuration report in an attachment as now your confidential info is visible to the public. Instead paste it in a message.
Code:
#kunena.layout .kunena-topic-item .message-published .kmsg-wrap .mykmsg-header > a {
scroll-margin-top: 120px;
}
Last edit: 10 months 2 weeks ago by Pinkeltje.
The following user(s) said Thank You: sarrene
Please Log in or Create an account to join the conversation.
10 months 2 weeks ago #233573
by sarrene
Peace is not what you seek in the world, but what you find within yourself.
Replied by sarrene on topic Forum Last-Post Anchor Links Scroll to Middle of Page Instead of Top of Post
Good afternoon Pinkeltje,
I had thought I set that to "Set attachment as Private". Sadly I cannot seem to edit my original topic. I will have to check the other post I had made now. However, thank you for letting me know!
On topic: That is a perfect fix! Thank you so much!
Now, if i can figure out how to remove that file....
I had thought I set that to "Set attachment as Private". Sadly I cannot seem to edit my original topic. I will have to check the other post I had made now. However, thank you for letting me know!
On topic: That is a perfect fix! Thank you so much!
Now, if i can figure out how to remove that file....
Peace is not what you seek in the world, but what you find within yourself.
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 973
- Thank you received: 153
10 months 2 weeks ago - 10 months 2 weeks ago #233575
by Pinkeltje
Replied by Pinkeltje on topic Forum Last-Post Anchor Links Scroll to Middle of Page Instead of Top of Post
Use Report this to ask a moderator to delete attachment.
Last edit: 10 months 2 weeks ago by Pinkeltje.
The following user(s) said Thank You: sarrene
Please Log in or Create an account to join the conversation.
10 months 2 weeks ago #233576
by sarrene
Peace is not what you seek in the world, but what you find within yourself.
Replied by sarrene on topic Forum Last-Post Anchor Links Scroll to Middle of Page Instead of Top of Post
Peace is not what you seek in the world, but what you find within yourself.
Please Log in or Create an account to join the conversation.
Time to create page: 0.240 seconds