Browse Source

improve back-to-main-page links

Falko Schindler 3 years ago
parent
commit
4e9967269a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      main.py

+ 2 - 2
main.py

@@ -492,11 +492,11 @@ with example(ui.link):
 with example(ui.page):
     with ui.page('/other_page'):
         ui.label('Welcome to the other side')
-        ui.link('Back to main page', '')
+        ui.link('Back to main page', '#page')
 
     with ui.page('/dark_page', dark=True):
         ui.label('Welcome to the dark side')
-        ui.link('Back to main page', '')
+        ui.link('Back to main page', '#page')
 
     ui.link('Visit other page', 'other_page')
     ui.link('Visit dark page', 'dark_page')