[go: up one dir, main page]

Skip to content

The screen scroll to a wrong place after click on anchor link

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Summary

When navigate using markdown anchor tags the screen scroll to wrong position.

If url visited is home of repository bug occurs, but if readme.md file is acessed directly(blob) it works fine

Steps to reproduce

  1. open home of repository
  2. click on "Configurar a JDK" on summary
  3. scroll screen to top
  4. click on "Adicionar o servidor de aplicação remoto" on summary

Example Project

https://gitlab.com/kauanmocelin/bug-scroll-anchor

What is the current bug behavior?

the screen scroll to random position after clicked on summary link

What is the expected correct behavior?

the screen must scroll to header section of clicked summary link

Relevant logs and/or screenshots

Screencast_from_2024-09-27_18-53-26

Results of GitLab environment info

Expand for output related to GitLab environment info

(For installations with omnibus-gitlab package run and paste the output of:
`sudo gitlab-rake gitlab:env:info`)

(For installations from source run and paste the output of:
`sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production`)

Results of GitLab application Check

Expand for output related to the GitLab application check

(For installations with omnibus-gitlab package run and paste the output of: sudo gitlab-rake gitlab:check SANITIZE=true)

(For installations from source run and paste the output of: sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true)

(we will only investigate if the tests are passing)

Possible fixes

Edited by 🤖 GitLab Bot 🤖