1

This must be something simple but I cannot figure out how it should be done.

I have a page created by Page manager (and Panels) on the url [page-path]. I have added a custom content with an url in it: <a href="admin/structure/taxonomy/[vocabulary]/add">Add a term</a>.

The problem is that on the rendered page the url is transformed to contain also the path of the page itself: [page-path]/admin/structure/taxonomy/[vocabulary]/add.

I suppose this is how the Page manager (or Panels) works, but I can't find out how to handle this.

Thank you in advance!

  • It should be href="/admin not href="admin – Mołot Apr 1 '14 at 12:00
  • I've tried it but with href="/admin... the URL is localhost/admin... and not localhost/[sitename]/admin... as it should be. – omun Apr 1 '14 at 12:21
  • Then make it href="/sitename/admin. Or use l() to let Drupal care. – Mołot Apr 1 '14 at 12:24
  • The sitename will change so I cannot use it; that's why I use a relative path. I'll try with l() and hope to understand how it works :). – omun Apr 1 '14 at 13:09

Your Answer

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

Browse other questions tagged or ask your own question.