Hi, is there a way to add router page to a menu(or link it to a button)?
Yes when you select the link icon on a button element and click the which page drop down, if you have a router configured the router pages will show up as options.
If you want to conditionally trigger links in code you can also use wix-location
So if you have an "admin" router and an "admin-page" you can call
When I'm trying to link it to button every time "Done" button becomes unavailable(see screenshot attached). And I could not find any option to add it(router page) to a website menu(only regular pages).
wix-location works just fine. But I can't connect it to a website menu.
have you solved the issue?
That is interesting. The page settings for the router page says this:
What is this page's behaviour?
It is controlled by the code you write in the file.
Its URL has the prefix admin. You can change the prefix here.
It is URL-driven, so your users will not be able to navigate to it from a menu.
However, you can add a link item to your menu that will navigate to this page.
Probably try to use the link feature:
Click on the button pointed to by the green arrow and use Web Address?
If you use the Web Address and a fully qualified URL it will probably work fine