Get current url inside page layout function

Hi, I have a page (pages/about.py), that has the following content:

dash.register_page(__name__, title='MyApp')

def layout(**kwargs): 
    # Need url here <=========

    # Do some magic...

How can I get current url?

Thank you!

Hi @Doug_82 Welcome to the Dash community :slight_smile:

See information on path variables and query strings in the docs here:

You can also find lots of minimal examples of both in this repo