Layout resets when using markdown to navigate pages

I have multi page app, I use markdown to navigate throu pages, every time it resets the page_config
How do I preserve the st.set_page_config with using markdown