? being appended on the frontpage URL #5437

Closed
opened 2025-11-02 06:24:54 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @silverwind on GitHub (May 21, 2020).

  1. Open https://try.gitea.io/
  2. Notice URL changes to https://try.gitea.io/?

I think some script is causing this, maybe the heatmap?

Originally created by @silverwind on GitHub (May 21, 2020). 1. Open https://try.gitea.io/ 2. Notice URL changes to `https://try.gitea.io/?` I think some script is causing this, maybe the heatmap?
Author
Owner

@zeripath commented on GitHub (May 22, 2020):

It's the repo list.

@zeripath commented on GitHub (May 22, 2020): It's the repo list.
Author
Owner

@JaneYork commented on GitHub (May 22, 2020):

It happened to me, too.
So this is normal, not a bug? @zeripath

@JaneYork commented on GitHub (May 22, 2020): It happened to me, too. So this is normal, not a bug? @zeripath
Author
Owner

@zeripath commented on GitHub (May 22, 2020):

It's not serious problem, but it is an unintended ugly side effect of making the repo list store history in the query part of the URL.

Someone, likely myself, will have to take a look to see if it can be stopped.

@zeripath commented on GitHub (May 22, 2020): It's not serious problem, but it is an unintended ugly side effect of making the repo list store history in the query part of the URL. Someone, likely myself, will have to take a look to see if it can be stopped.
Author
Owner

@silverwind commented on GitHub (May 22, 2020):

Some combination of writing location.search or replaceState / pushState should get you there. I remember dealing with a similar issue for issue hash links where pushing a space apparently made a difference:

6af13dbac2/web_src/js/index.js (L692-L694)

@silverwind commented on GitHub (May 22, 2020): Some combination of writing `location.search` or `replaceState` / `pushState` should get you there. I remember dealing with a similar issue for issue hash links where pushing a space apparently made a difference: https://github.com/go-gitea/gitea/blob/6af13dbac2179c8fd2c63bcf175c04a112f8c080/web_src/js/index.js#L692-L694
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#5437