I have a grade vocabulary with a 6. Class taxonomy term. The taxonomy page have an URL like www.example.com/foo/6-class/bar and I can't find the taxonomy with the following code.
$grade = arg(2); $term = taxonomy_get_term_by_name($grade)
It works when I use a string (e.g. 6. Class), but not with
arg(2). How can I get the correct taxonomy with this URL alias? Problem might be, that it is a exposed filter and no contextual filter. But I can not change this fact.
Neither I can get the source path with the following code.
drupal_lookup_path('source', $_GET['q']); drupal_lookup_path('alias', current_path());