0

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 ?

8
  • do you want to give links to other nodes or some external urls Commented Sep 19, 2012 at 10:07
  • Just to other nodes, internal links, for example to a view, as in the given example.
    – drcelus
    Commented Sep 19, 2012 at 10:10
  • 1
    You can try drupal.org/project/link_node module, but this works for node link only Commented Sep 19, 2012 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
    Commented Sep 19, 2012 at 10:31
  • I must be missing something, or are you just asking for url()?
    – hampusn
    Commented Sep 19, 2012 at 10:46

1 Answer 1

0

You should be able to define such Links with the menu_hook

http://api.drupal.org/api/drupal/modules!system!system.api.php/function/hook_menu/7

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 and acknowledge you have read our privacy policy.

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