forked from forgejo/forgejo
Remove tab/TabName usage where it's not needed (#19973)
`tab` query argument and `TabName` in context is used only in profile so remove it from all other places where it's not used anymore.
This commit is contained in:
parent
9f87b60b46
commit
1f8f9c3826
8 changed files with 28 additions and 31 deletions
|
@ -22,11 +22,11 @@ func TestLinksNoLogin(t *testing.T) {
|
|||
|
||||
links := []string{
|
||||
"/explore/repos",
|
||||
"/explore/repos?q=test&tab=",
|
||||
"/explore/repos?q=test",
|
||||
"/explore/users",
|
||||
"/explore/users?q=test&tab=",
|
||||
"/explore/users?q=test",
|
||||
"/explore/organizations",
|
||||
"/explore/organizations?q=test&tab=",
|
||||
"/explore/organizations?q=test",
|
||||
"/",
|
||||
"/user/sign_up",
|
||||
"/user/login",
|
||||
|
@ -81,11 +81,11 @@ func TestNoLoginNotExist(t *testing.T) {
|
|||
func testLinksAsUser(userName string, t *testing.T) {
|
||||
links := []string{
|
||||
"/explore/repos",
|
||||
"/explore/repos?q=test&tab=",
|
||||
"/explore/repos?q=test",
|
||||
"/explore/users",
|
||||
"/explore/users?q=test&tab=",
|
||||
"/explore/users?q=test",
|
||||
"/explore/organizations",
|
||||
"/explore/organizations?q=test&tab=",
|
||||
"/explore/organizations?q=test",
|
||||
"/",
|
||||
"/user/forgot_password",
|
||||
"/api/swagger",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue