fix permalink to line/polygon