Explorar o código

improve back-to-main-page links

Falko Schindler %!s(int64=3) %!d(string=hai) anos
pai
achega
4e9967269a
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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')