Drop down Item - Link

Strange thing just happened while updating the Link of several Drop Down Items, upon saving the page the link goes from mypage.php?id=1 to just ?id=1

No matter what I do I can’t get the mypage.php to remain.

If I ‘save as’ the page it retains the full url and its the only page in several I’ve just worked on that won’t do as its meant to!

Any ideas anyone as to why?

Thanks
CK

So are you working on the the same mypage.php you use in the menu item, or is it another page?

It’s just one page that won’t update the drop down items. All other pages which have the same drop down menu items have update OK.

I’ve using W5 so thought it might be a bug so went back to W4 and it’s doing the same thing so I’m guessing its the page. I re-named the page and the URL’s save OK., bizarre…

Just tried my new page and as soon as I do the links all break, going back to ?id=1 etc. How is it possible that from Chrome a page can be changed?

I am not sure i am following.
If you work on a page called page-name.php and add a link to page-name.php?id=1 then the link will be updated to ?id=1 as the link is relative to the page and you are linking to the same page.

If you work on other-page.php and link to page-name.php?id=1 the link will not be changed, again, as it is relative to the current page and you link to a different page.

I get the principle but I’m using the same menu through a number of pages with a drop down where the items have a different ID number, as you’d expect. The trouble is because the link keeps going back to just the ?id=1 the page fails as the url becomes mydomain.com/?id=1 instead of mydomain.com/page-name.php?id=1

How can I stop Wappler from updating these links automatically?

I think I found it in the site setup, ‘Links relative to’ - I had document but have now changed it to site.

So why not just put the menu in an include?

I have done in other parts of the site but hadn’t got round to it in this part…

So just move the navigation in an include and use root relative links for it, all will be fine.

OK, thanks @Teodor