Skip to content

Use link in UI which returned a relative url but not html_url which contains an absolute url #21986

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 53 commits into from
Feb 6, 2023
Merged
Changes from 1 commit
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
20310a8
Use link in UI which returned a relative url but not html_url which c…
lunny Nov 30, 2022
9d372b4
Add an absolute url from the current request domain but not setting
lunny Nov 30, 2022
9aaef39
Fix lint
lunny Nov 30, 2022
c1a9695
proper name
lunny Nov 30, 2022
08c9d23
Fix bug
lunny Nov 30, 2022
2bcf3c4
convert action's comment url to relative url
lunny Nov 30, 2022
fc89f23
fix link
lunny Nov 30, 2022
5b331cc
Fix link
lunny Nov 30, 2022
9062c7c
Revert 2 places
lunny Nov 30, 2022
10af358
fix fmt
lunny Nov 30, 2022
7f69929
Fix bug
lunny Nov 30, 2022
f3f1f42
Merge branch 'main' into lunny/use_link_ui
lunny Nov 30, 2022
f66f7d5
Fix test
lunny Nov 30, 2022
58cf943
use currentAppUrl
lunny Nov 30, 2022
3c3ad26
Merge branch 'main' into lunny/use_link_ui
lunny Nov 30, 2022
1deb827
use a function
lunny Dec 1, 2022
2b21845
Merge branch 'main' into lunny/use_link_ui
lunny Dec 1, 2022
4b48f04
Merge branch 'main' into lunny/use_link_ui
lunny Dec 1, 2022
a44cf53
Merge branch 'main' into lunny/use_link_ui
lunny Dec 9, 2022
6a1b940
merge main branch
lunny Dec 20, 2022
0537504
Merge branch 'lunny/use_link_ui' of github.com:lunny/gitea into lunny…
lunny Dec 20, 2022
eaed1c9
follow @silverwind review
lunny Dec 20, 2022
445eab0
Fix copy comment link
lunny Dec 21, 2022
f072529
Merge branch 'main' into lunny/use_link_ui
lunny Dec 21, 2022
5cfc482
follow @silverwind review
lunny Dec 22, 2022
4640083
Merge branch 'main' into lunny/use_link_ui
lunny Dec 22, 2022
f36e900
fix frontend test
lunny Dec 22, 2022
f09fb8a
fix package link
lunny Dec 22, 2022
172c5ef
Merge branch 'main' into lunny/use_link_ui
lunny Dec 23, 2022
9df63f5
improve js code
lunny Dec 23, 2022
a5bb0cb
Merge branch 'main' into lunny/use_link_ui
lunny Dec 23, 2022
49799bb
Update web_src/js/features/clipboard.js
lunny Dec 24, 2022
e3dc452
Update templates/repo/issue/view_content/context_menu.tmpl
lunny Dec 24, 2022
1a48a2a
Merge branch 'main' into lunny/use_link_ui
lunny Jan 18, 2023
7ddb1fb
merge main branch
lunny Jan 21, 2023
5ffc712
Merge branch 'lunny/use_link_ui' of github.com:lunny/gitea into lunny…
lunny Jan 21, 2023
93bdd1a
refactor link method
lunny Jan 28, 2023
dcf0d8d
Merge branch 'main' into lunny/use_link_ui
lunny Jan 28, 2023
0de2699
Merge branch 'main' into lunny/use_link_ui
lunny Jan 28, 2023
8f2aebd
follow @delvh suggestion
lunny Feb 4, 2023
792b142
Merge branch 'main' into lunny/use_link_ui
lunny Feb 4, 2023
5fca5c1
Merge branch 'lunny/use_link_ui' of github.com:lunny/gitea into lunny…
lunny Feb 4, 2023
d79bfb4
follow @delvh suggestion
lunny Feb 4, 2023
e0ceede
Merge branch 'main' into lunny/use_link_ui
jolheiser Feb 4, 2023
2ece9aa
merge main branch and follow @wxiaoguang's suggestion
lunny Feb 4, 2023
387b365
Merge branch 'lunny/use_link_ui' of github.com:lunny/gitea into lunny…
lunny Feb 4, 2023
5f3fe9d
Merge branch 'main' into lunny/use_link_ui
lunny Feb 4, 2023
f6706f9
Merge branch 'main' into lunny/use_link_ui
lunny Feb 4, 2023
5054766
Merge branch 'lunny/use_link_ui' of github.com:lunny/gitea into lunny…
lunny Feb 4, 2023
1ec019c
Fix lint
lunny Feb 4, 2023
2dc74ef
Merge branch 'main' into lunny/use_link_ui
lunny Feb 4, 2023
0c5e511
Merge branch 'main' into lunny/use_link_ui
lunny Feb 5, 2023
16a6cee
Merge branch 'main' into lunny/use_link_ui
jolheiser Feb 6, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion templates/base/head_script.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ If you introduce mistakes in it, Gitea JavaScript code wouldn't run correctly.
window.config = {
appUrl: '{{AppUrl}}',
appSubUrl: '{{AppSubUrl}}',
currentAppUrl: window.location.protocol + '//' + window.location.host +'{{AppSubUrl}}',
getCurAbsUrl: function(relUrl) {
return window.location.protocol + '//' + window.location.host +'{{AppSubUrl}}' + relUrl;
},
assetVersionEncoded: encodeURIComponent('{{AssetVersion}}'), // will be used in URL construction directly
assetUrlPrefix: '{{AssetUrlPrefix}}',
runModeIsProd: {{.RunModeIsProd}},
Expand Down