path/url param dilemma...

  • needtheanswers-1358854831543947374

    needtheanswers

    21 days ago

    I have pages that are somehow structured as shown on the image. This would normally be my dashboard where mypath could have a value like home, settings, products, categories etc. and then I have a subpath (or url param) for the settings that would have a value like account, payments, design etc. So my url that leads to the account settings would look like this "https: //example.com/dashboard/settings/account" and my url that leads to the products page would look like this "https: //example.com/dashboard/products". The problem is when I try to remove the paths and go to "https: //example.com/dashboard" it seems like I´m being redirected (but I´m not; the url is still https: //example.com/dashboard ) to a page that I´m unable to identify. It doesn´t show my dashboard content - it only shows my footer (there is no footer on the dashboard page!) . The footer component is only used on 3 pages and the dashboard page is none of them. What could cause this? I´m able to reproduce the issue but only WITHIN my project but not in another project. Any idea how to fix this? I would also appreciate help from Team toddle , this seems like a very weird issue.

    Thanks a lot
    1358854832466825376-image.png
  • erikbeus-1359053178775146526

    Erik Beuschau

    20 days ago

    Hi @needtheanswers
    Perhaps you have another page that only has one path parameter which is picked by the router? If you send me a URL to the page with the footer, I should be able to tell which component is being rendered. My DMs are open if the url is secret 🙂
  • needtheanswers-1359070031060668588

    needtheanswers

    20 days ago

    Hi @Erik Beuschau! Thanks for your response 🙂 I´ll check and send you the url as soon as I get home
    👍1
  • needtheanswers-1359151405482508338

    needtheanswers

    20 days ago

    @Erik Beuschau I´ve checked now and still couldn´t find the problem. I just sent you a DM
    👍1
  • erikbeus-1359159001182371872

    Erik Beuschau

    20 days ago

    For anyone else: there was a page with only 1 path parameter declared as a "Param". The router would pick that one when only one path parameter was specified in the url 👍
    🙏1