Drupal 7 how to write a clean url link in Panels, or Content Node

214 views Asked by At

I have enabled clean URLS and it is working fine. How ever I have a Panel page with link. the link goes somethinglike this.

<a href="?q=PageName">

Now, Lets say I am on that Panel page(i would think the same thing would happen on any other custom content pages) and let's call it PanelPage and I press the link, The URL end up being, PanelPage?q=PageName (The whole URL = localhost/SiteName/PanelPage?q=PageName).

My Question is, Is there a way to write that link, so that It coume out as Clean URL? SiteName/PageName ?

Please help. Thanks

2

There are 2 answers

1
Oswald On
0
Sagar On

In drupal 7, after logged in as admin go to following path "Configuration » Search and metadata » URL aliases".

There you can set 'Alias Path' for 'Existing Path'. Add an Alias path for your panel page.

For EX:

Existing system path : http://www.example.com/PanelPage?q=PageName Path alias : http://www.example.com/custom_name.html