External links bug in 0.7-dev?
-
Hi,
I just upgraded from v0.6.x to master so that I can use the persona theme+skins (didn't work on 0.6, now it does). But now I have a few problems:
-
External links don't work anymore[1]
-
I don't know how to hide header icons (aka menu items) anymore -- they're not statically declared in templates like in 0.6 so I can comment them out -- where does displayMenuItem() get them from?
-
how to invert the header colors from black-on-white to white-on-black?
Any hints appreciated,
Cosmin.[1] https://luapower.com/forum/topic/8/bundle-single-exe-app-deployments
-
-
@Cosmin-Apreutesei78 Navigation is now controlled from the ACP. You can disable or delete navigation links from ACP>General>Navigation. Click disable and click "Save Changes"
To change the header colors, you have two options:
- Enter custom css under ACP>APPEARANCE CUSTOM HTML & CSS
- Edit the theme template (change navbar-default to navbar-inverse in header.tpl)
Here is CSS you can use in ACP to change colors
.navbar-default { background-color: #333; } .navbar-default .navbar-nav>li>a { color: #ddd; } .navbar-default .navbar-nav>li>a:hover { color: #ddd; } .navbar-default .navbar-brand { color: #ddd; } .navbar-default .navbar-brand:hover { color: #ddd; } .navbar-default .navbar-nav .btn.btn-link { color: #ddd; } .navbar-default .navbar-nav .btn.btn-link:hover { color: #ddd; }
-
@pichalite That was easy, thank you very much!
Any idea why external links might not work?
My forum is at https://luapower.com/forum (config.json:url set accordingly). Clicking on a link pointing to https://luapower.com/foo for instance is redirected at runtime (the href looks fine) to https://luapower.com/forum/foo (a nonexistent url) and the page says:
/forum/api/foo Not Found
This only happened after the upgrade which is why I thought it may be a bug.
Note: I deactivted all the plugins for this test except the markdown plugin.
Thanks again!
Cosmin. -
@Cosmin-Apreutesei78 looks like a bug. Issue seems to only happen if the URL starts with https://luapower.com
-
@pichalite thanks for looking at this. I'll open up an issue then.