File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
wiki/wiki/doctype/wiki_page Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 6
6
7
7
< nav class ="wiki-navbar navbar navbar-light navbar-expand-lg sticky-top pr-4 ">
8
8
< div class ="navbar-brand-container ">
9
- < a class ="navbar-brand " alt ="Go to home page " href ="{{ url_prefix or "" }}{{ home_page or "/" }}">
9
+ < a class ="navbar-brand " alt ="Go to home page " data-prefix =" {{ url_prefix }} " href ="{{ url_prefix or "" }}{{ home_page or "/" }}">
10
10
{%- if light_mode_logo -%}
11
11
< img alt ="Logo " data-alt-src ="{{ dark_mode_logo }} " src ='{{ light_mode_logo }} '>
12
12
{%- elif dark_mode_logo -%}
Original file line number Diff line number Diff line change @@ -225,9 +225,8 @@ def get_context(self, context):
225
225
context .add_dark_mode = wiki_settings .add_dark_mode
226
226
context .light_mode_logo = wiki_space .light_mode_logo or wiki_settings .logo
227
227
context .dark_mode_logo = wiki_space .dark_mode_logo or wiki_settings .dark_mode_logo
228
- context .home_page = (
229
- wiki_space .route if wiki_space .light_mode_logo or wiki_space .dark_mode_logo else "/"
230
- )
228
+ if wiki_space .light_mode_logo or wiki_space .dark_mode_logo :
229
+ context .home_page = "/" + wiki_space .route
231
230
context .script = wiki_settings .javascript
232
231
context .show_feedback = wiki_settings .enable_feedback
233
232
context .ask_for_contact_details = wiki_settings .ask_for_contact_details
You can’t perform that action at this time.
0 commit comments