How do I avoid hard coding the links in a custom made navigation bar? I'm creating a custom navigation bar in drupal. I went ahead about this by creating it as a block and gave it all the neceassary CSS, but something that is not quit clear to me is how can I avoid the hard coding for the links?
or any other ways that I can achieve the same result?
You should create a menu for this (drupal menus works with system paths, no need to "hardcode" the links) and display this menu in a block where you want.