Hi to all,

I am working on a gaming portal on Drupal.

There are 8 categories (using taxonomy terms) of games, but each game can belong to multiple categories.
So, if I have a game called 'game-1', which belongs to 'game-category-1' as well as 'game-category-2', I need to have URLs like:

example.com/game-category-1/game-1
example.com/game-category-2/game-1

I would like to know if having multiple aliases for the same node causes
any issues.

I manually entered a second alias for a test node into the url_alias table and I was able to call that node with both URLs.
Is there some way to create multiple URLs for a node based on the Taxonomy terms that are associated with that node?
If not, can i tweak path or pathauto module to make the duplicate entries for me?

I have been told that it is possible by either a custom module or by Triggers and Actions.
If what is the best way of doing this?

The only issue I see is that if the node needs to be referenced anywhere else, it might be a problem. E.g. if a user adds a game node as favorite, then which link to show on his favorites list...
Is there some way of taking care of this too?

Thanking in advance.

Comments

tregismoreira’s picture

I'm needing that too. Have you find a solution?

paganwinter’s picture

I haven't yet found a solution, but it seems to be a bad idea to have 2 URLs pointing to the same page.
But yes, it can be done but somehow entering the second URL alias in the database.

xwalox’s picture

for some people that can be ilogig but i need that too
we can add a lot of alias in the database but how to load it?

paganwinter’s picture

You could just add those extra entries in the relevant table in the database.
Worked for me.

What exactly do you mean by load it?