{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":42543,"path":"platform-user-interface/service-portal/navigate-by-portal-url.md","title":"Page navigation in Service Portal by URL","bundle":null,"doc_type":null,"release":"australia","body":"\n# Page navigation in Service Portal by URL\n\nYou can navigate to a portal or a page in Service Portal using a URL.\n\nService Portal URLs have the following structure:\n\n```\nhttps://<instance>/<portal suffix>/<guest language>/<keywords>?id=<page id>&lang=<language>&<page parameters>\n```\n\n<table id=\"table_sbr_fnd_r1b\"><thead><tr><th>\n\nElement\n\n</th><th>\n\nDescription\n\n</th></tr></thead><tbody><tr><td>\n\ninstance\n\n</td><td>\n\nUnique, secure web address for each instance. The default format is `https://<instance name>.service-now.com`.\n\n</td></tr><tr><td>\n\nportal suffix\n\n</td><td>\n\nSuffix established for the portal. For example, `/sp`.\n\n</td></tr><tr><td>\n\nguest language\n\n</td><td>\n\nThe language ID of the portal language. For example, `es` for Spanish. The page returns in the language specified if the language is active and the user accessing the page is a guest user.\n\n</td></tr><tr><td>\n\nkeywords\n\n</td><td>\n\nHuman readable keywords that improve search engine optimization \\(SEO\\) and click-through rates for public pages. Human readable URLs also help users understand what to expect on a page for public and non-public pages. For example, `https://<instance>/kb/en/faq/what-is-a-cookie?id=kb_article_view&sysparm_article=KB0000007`.\n\n For more information, see [Add human readable keywords to page URLs](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/platform-user-interface/service-portal/add-human-readable-keywords-page-urls.md).\n\n</td></tr><tr><td>\n\nid\n\n</td><td>\n\nThe ID of the page to navigate to within the portal frame. For example, `?id=index`.\n\n</td></tr><tr><td>\n\nlanguage\n\n</td><td>\n\nThe language ID of the portal language. For example, `lang=es` for Spanish. The page returns in the language requested if the language is active and the user accessing the page is a guest user or an authenticated user without a language preference set.\n\n</td></tr><tr><td>\n\npage parameters\n\n</td><td>\n\nAdditional parameters are required by some pages to load dynamic content by looking up a record \\(table, sys\\_id\\). Find the `$sp.getParameter` calls in a widget server script to see the parameters that a widget uses. For more detail on this method, see GlideSPScriptable - Scoped.\n\n If you don’t include these additional parameters when required, you might get a `You are either not authorized or record is not valid` error message.\n\n</td></tr></tbody>\n</table>For example, the URL for a public knowledge base page in Spanish in Service Portal could be `https://<instance>/sp/es/faq/what-is-a-cookie?id=kb_article&sys_id=KB0000007`.\n\n**Note:** If you use article versioning with the Knowledge Management - Service Portal \\(com.snc.knowledge\\_serviceportal\\) plugin, you must add the article version number to the URL to open a knowledge article in the base system or knowledge portals. For example, instead of accessing an article using the URL `https://<instance>/sp?id=kb_article&sys_id=KB0000005`, you must include the article version number: `https://<instance>/sp?id=kb_article&sys_id=KB0000005%20V1.0`. To learn more, see Article versioning.\n\n## Referencing a page ID\n\nWidgets and widget instance options reference Service Portal pages using the page ID. For example, a link to the sc\\_home page within a widget HTML template might appear as follows:\n\n```\n<div><a href=\"?id=sc_home\">${Order something...}</a></div>\n```\n\n**Parent Topic:**[Understanding Service Portal](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/platform-user-interface/service-portal/sp-what-to-know.md)\n\n**Related topics**  \n\n\n[Add human readable keywords to page URLs]()\n\n"}}