{"section":"known-issues","requestedLocale":"en","requestedSlug":"linkid-is-not-being-registered-on-rewriter-when-translating-with-catalog-graphql","locale":"en","slug":"linkid-is-not-being-registered-on-rewriter-when-translating-with-catalog-graphql","path":"docs/en/known-issues/Store Framework/linkid-is-not-being-registered-on-rewriter-when-translating-with-catalog-graphql.md","branch":"main","content":"## Summary\n\n\nWhen using the catalog graphQL and translating the URL using the linkId the rewriter should store the linkId, but it's not happening: https://developers.vtex.com/docs/guides/catalog-internationalization\n\n\n##\n\n## Simulation\n\n\n\n- Follow the documentation guide for translating the catalog content: https://developers.vtex.com/vtex-developer-docs/docs/catalog-internationalization#mutation\n- **For Category links:**\n  - Check the linkId that you created at admin/graphql-ide and choose the rewriter app:\n\n    \\{ internal\\{ get(path: \"yourLinkdIdHere\")\\{ id \\} \\}\\}\n\n\n\n- This will return null;\n- Check again with the name of your translated category but, slugified:\n\n    \\{ internal\\{ get(path: \"yourTranslatedCategoryNameSlugified\")\\{ id \\} \\}\\}\n\n\n\n- This will return results.\n\n\n\n- **For product links:**\n  - Access the product page using the translated link created using the catalog graphQL;\n  - It will show a 404 Not Found.\n\n\n##\n\n## Workaround\n\n\n\n- **For Category links:**\n  - Run the following query on rewriter:\n\n    \\{ internal\\{ get(path: \"yourTranslatedLinkdId\")\\{ id from declarer type query binding  origin resolveAs \\} \\}\\}\n\n\n\n- Save the returned values, you will need to use them in the next step;\n- Run the following mutation just changing the from parameter, the others must be the same as above:\n\n    mutation saveInternal($route: InternalInput!) \\{ internal \\{ save(route: $route) \\{ from declarer type id binding resolveAs origin \\} \\}\\}\\{ \"route\": \\{ \"from\": \"yourLinkId\", \"declarer\": \"yourSavedDeclarer\", \"type\": \"yourSavedType\", \"binding\": \"yourSavedBinding\", \"id\": \"yourSavedId\", \"origin\": \"yourSavedOrigin\", \"resolveAs\": \"yourSavedResolveAs\" \\}\\}\n\n> For more information regarding those params, you can consult: https://developers.vtex.com/vtex-developer-docs/docs/rewriter\n\n\n\n- Now, we are going to delete the old route (the one saved with the name)\n\n    mutation saveInternal($route: InternalInput!) \\{ internal \\{ delete(path: \"yourTranslatedLinkdId\") \\{ id \\} \\}\\}\n\n\n\n- **For product links:**\n  - Run the following mutation just changing the from parameter, the others must be the same as above:\n\n    mutation saveInternal($route: InternalInput!) \\{ internal \\{ save(route: $route) \\{ from declarer type id binding resolveAs origin \\} \\}\\}\\{ \"route\": \\{ \"from\": \"/yourTranslatedLinkdId/p\", \"declarer\": \"vtex.store@2.x\", \"type\": \"product\", \"id\": \"productId\", \"resolveAs\": \"/yourOrinalLinkdId/p\", \"binding\": \"bindingId\" \\}\\}"}