Shortcut paths with hash (#) load as encoded html entity (%23)

i.e. a path saved as admin/config/people/accounts#edit-email-title will actually link to /admin/config/people/accounts%23edit-email-title which loads /admin/config/people/

Comments

neRok’s picture

Status: Active » Closed (works as designed)

Im just going over some old core issues and trying to close them.

This is by design of l() function.

You would want to do something like l(t('Edit Email Title'), 'admin/config/people/accounts', array('fragment' => 'edit-email-title'));

If you are trying to set as a menu link, you will need to set html = TRUE for it (via code or module).

sylvaticus’s picture

Issue summary: View changes

Hi, I just had the peasure to meet this bug while setting the bredcrumb with rule, where my destination url is /something#ananchor.

A workaround is to first add a URI variable and then use that variable in the bredcrumb action.