Keep preferences when submitting comment #4454

Closed
opened 2025-11-02 05:51:28 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @wgevaert on GitHub (Dec 6, 2019).

  • Gitea version (or commit ref): 1.9.4
  • Git version: Not relevant
  • Operating system: Not relevant

Description

I am reviewing a big feature, using the option to ignore all whitespace changes. When I then make a comment, the whitespace preferences are discarded. (Probably because of the #issuecomment-<number> part in the url)
When I then again set my whitespace preferences, I am no longer automatically moved to the comment I just made. Hence, I have two feature requests:

  • When making a comment, your whitespace & splitscreen preferences should not be discarted.
  • When changing your preferences, you want to be moved to the comment in your URL.

I think this can be fixed by changing the comment movement parameter to a GET-variable, but I am not sure if this is indeed possible (I do not know any GO).

Originally created by @wgevaert on GitHub (Dec 6, 2019). <!-- NOTE: If your issue is a security concern, please send an email to security@gitea.io instead of opening a public issue --> <!-- 1. Please speak English, this is the language all maintainers can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/gitea) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): 1.9.4 - Git version: Not relevant - Operating system: Not relevant ## Description I am reviewing a big feature, using the option to ignore all whitespace changes. When I then make a comment, the whitespace preferences are discarded. (Probably because of the `#issuecomment-<number>` part in the url) When I then again set my whitespace preferences, I am no longer automatically moved to the comment I just made. Hence, I have two feature requests: - When making a comment, your whitespace & splitscreen preferences should not be discarted. - When changing your preferences, you want to be moved to the comment in your URL. I think this can be fixed by changing the comment movement parameter to a GET-variable, but I am not sure if this is indeed possible (I do not know any GO).
GiteaMirror added the topic/prtopic/uitype/proposal labels 2025-11-02 05:51:28 -06:00
Author
Owner

@mnazarov commented on GitHub (Mar 4, 2021):

I think it can also be considered as a bug, because in some cases when the whitespace setting is reset after pressing 'add commit' the page can't restore the reading position with the anchor link (I guess because it shows different lines then before)

related report: https://github.com/go-gitea/gitea/issues/13758

@mnazarov commented on GitHub (Mar 4, 2021): I think it can also be considered as a bug, because in some cases when the whitespace setting is reset after pressing 'add commit' the page can't restore the reading position with the anchor link (I guess because it shows different lines then before) related report: https://github.com/go-gitea/gitea/issues/13758
Author
Owner

@wxiaoguang commented on GitHub (Apr 25, 2023):

It has been fixed by https://github.com/go-gitea/gitea/pull/15566

@wxiaoguang commented on GitHub (Apr 25, 2023): It has been fixed by https://github.com/go-gitea/gitea/pull/15566
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#4454