File tree 1 file changed +7
-1
lines changed 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ func (IndexController) WrapUrl(ctx echo.Context) error {
137
137
} else {
138
138
tUrl += "?"
139
139
}
140
- tUrl += "hmsr =studygolang.com&utm_medium=studygolang.com&utm_source=studygolang.com"
140
+ tUrl += "utm_campaign =studygolang.com&utm_medium=studygolang.com&utm_source=studygolang.com"
141
141
142
142
if CheckIsHttps (ctx ) {
143
143
return ctx .Redirect (http .StatusSeeOther , tUrl )
@@ -204,5 +204,11 @@ func (IndexController) Markdown(ctx echo.Context) error {
204
204
// Link 用于重定向外部链接,比如广告链接
205
205
func (IndexController ) Link (ctx echo.Context ) error {
206
206
tUrl := ctx .QueryParam ("url" )
207
+ if strings .Contains (tUrl , "?" ) {
208
+ tUrl += "&"
209
+ } else {
210
+ tUrl += "?"
211
+ }
212
+ tUrl += "utm_campaign=studygolang.com&utm_medium=studygolang.com&utm_source=studygolang.com"
207
213
return ctx .Redirect (http .StatusSeeOther , tUrl )
208
214
}
You can’t perform that action at this time.
0 commit comments