File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 55 const elements = document . querySelectorAll ( '.improvepage' ) ;
66 const pageurl = window . location . href . split ( '?' ) [ 0 ] ;
77 elements . forEach ( element => {
8- const url = new URL ( element . href ) ;
8+ const url = new URL ( element . href . split ( '?' ) [ 0 ] ) ;
99 url . searchParams . set ( 'pagetitle' , title ) ;
1010 url . searchParams . set ( 'pageurl' , pageurl ) ;
11+ url . searchParams . set ( 'pagesource' , "{{ pagename }}.rst" ) ;
1112 element . href = url . toString ( ) ;
1213 } ) ;
1314 } ) ;
1617 < h3 > {{ _('This page') }}</ h3 >
1718 < ul class ="this-page-menu ">
1819 < li > < a href ="{{ pathto('bugs') }} "> {% trans %}Report a bug{% endtrans %}</ a > </ li >
19- < li > < a class ="improvepage " href ="{{ pathto('improve-page') }}?pagesource={{ pagename }}.rst "> {% trans %}Improve this page{% endtrans %}</ a > </ li >
20+ < li > < a class ="improvepage " href ="{{ pathto('improve-page') }} "> {% trans %}Improve this page{% endtrans %}</ a > </ li >
2021 < li >
2122 < a href ="https://github.com/python/cpython/blob/main/Doc/{{ pagename }}.rst?plain=1 "
2223 rel ="nofollow "> {{ _('Show source') }}
You can’t perform that action at this time.
0 commit comments