I have a development site that doesn't support clean URLs, my production site does support them. If I build a link in the body of a node like:

<a href="view-something/4,7">View something</a>

This shows ok on my production site but gives a 404 while in development site. How do I build universally good URLs ?

  • do you want to give links to other nodes or some external urls – mohit_rocks Sep 19 '12 at 10:07
  • Just to other nodes, internal links, for example to a view, as in the given example. – drcelus Sep 19 '12 at 10:10
  • 1
    You can try drupal.org/project/link_node module, but this works for node link only – mohit_rocks Sep 19 '12 at 10:23
  • So, there is no functionality in core for this kind of links ? I was expecting some kind of "use [link]" answer :) – drcelus Sep 19 '12 at 10:31
  • I must be missing something, or are you just asking for url()? – hampusn Sep 19 '12 at 10:46

You should be able to define such Links with the menu_hook


Especially lookt at the Wildcard options i used them recently to define own urls

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.