anchor (#) in url alias
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;