anchor (#) in url alias I want to open same page from different contents. So I need to generate link like /testimonials#group-1 for these contents. I used pathauto module for this. I made pattern for this category testimonials#[node:title]. But this URL get encoded by browser /testimonials%23group-1 and it gives me no page found error.

So how can I put anchor (#) in URL alias which can give me output like /testimonials#group-1.?
I think you are trying to add anchors to a node's alias to define multiple sections in a node, which is impossible since an anchor destination is not part of a path and therefor not part of an alias. For more information, see the W3 introduction on links in HTML.

Creating a anchor: If you would like to subsection your node's body, you should use anchors in your code:

&lt;a name="anchorOne"&gt; ... &lt;/a&gt;


If you're using the WYSIWYG module, make sure you've got the Anchor plugin enabled, so you can create the anchors through the nicely builtin anchor plugin's GUI, which makes it that much easier.

Linking to an anchor: After creating an anchor, you can link to that section by making a hyperlink as follows:

&lt;a href="/path/to/node#anchorOne"&gt;Link text&lt;/a&gt;


To build the above link in the Drupal-way:

&lt;?php print l('Link text', 'path/to/node', array('fragment' =&gt; 'anchorOne')); ?&gt;


Or to only build the URL including the anchor destination:

&lt;?php print url('path/to/node', NULL, 'anchorOne'); ?&gt;