module redirects users based on variable parameter. Solution isn't the nicest but doesn't matter got port.