<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How can I configure a shorter URL than nxpath/default/default-domain for everything? in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/how-can-i-configure-a-shorter-url-than-nxpath-default-default/m-p/319340#M6341</link>
    <description>&lt;P&gt;Hey Rene,&lt;/P&gt;</description>
    <pubDate>Wed, 10 Aug 2016 15:27:43 GMT</pubDate>
    <dc:creator>Yousuf_Nejati</dc:creator>
    <dc:date>2016-08-10T15:27:43Z</dc:date>
    <item>
      <title>How can I configure a shorter URL than nxpath/default/default-domain for everything?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-can-i-configure-a-shorter-url-than-nxpath-default-default/m-p/319339#M6340</link>
      <description>&lt;P&gt;Hi there,
the URLs of documents in Nuxeo tend to get rather long.
&lt;A href="https://mydomain.hoster.com/nuxeo/nxpath/default/default-domain/workspaces/project1/folder/document/@view_documents" target="test_blank"&gt;https://mydomain.hoster.com/nuxeo/nxpath/default/default-domain/workspaces/project1/folder/document/@view_documents&lt;/A&gt;
That is 115 characters, although there are no lengthy names and only one folder in the hierarchy. A large part of that is the default "middle" part starting from nxpath until default-domain (29 characters), that I cannot influence (to the best of my knowledge). I can rename a domain, but the path remains the same (which makes sense in many cases). Is there a way to change this part? If every part is necessary, I could still use only 1 character so that each URL would be shortened by 24 characters. That avoids problems with large URLs when using a lot of subfolders (which some users do).
Thanks in advance for your help
Regards
René&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2016 15:58:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-can-i-configure-a-shorter-url-than-nxpath-default-default/m-p/319339#M6340</guid>
      <dc:creator>René_</dc:creator>
      <dc:date>2016-07-25T15:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: How can I configure a shorter URL than nxpath/default/default-domain for everything?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-can-i-configure-a-shorter-url-than-nxpath-default-default/m-p/319340#M6341</link>
      <description>&lt;P&gt;Hey Rene,&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2016 15:27:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-can-i-configure-a-shorter-url-than-nxpath-default-default/m-p/319340#M6341</guid>
      <dc:creator>Yousuf_Nejati</dc:creator>
      <dc:date>2016-08-10T15:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: How can I configure a shorter URL than nxpath/default/default-domain for everything?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-can-i-configure-a-shorter-url-than-nxpath-default-default/m-p/319341#M6342</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;You could setup the "id" URL pattern, which is shorter, as the default one instead of the one relying on the document path.&lt;/P&gt;
&lt;P&gt;Here is a sample runtime contribution (not tested) to achieve that:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;require&amp;gt;org.nuxeo.ecm.platform.ui.web.rest.URLService.contrib&amp;lt;/require&amp;gt;
  &amp;lt;extension point="urlpatterns" target="org.nuxeo.ecm.platform.ui.web.rest.URLService"&amp;gt;
    &amp;lt;urlPattern enabled="true" name="id"&amp;gt;
      &amp;lt;defaultURLPolicy&amp;gt;true&amp;lt;/defaultURLPolicy&amp;gt;
      &amp;lt;needBaseURL&amp;gt;true&amp;lt;/needBaseURL&amp;gt;
      &amp;lt;needRedirectFilter&amp;gt;true&amp;lt;/needRedirectFilter&amp;gt;
      &amp;lt;needFilterPreprocessing&amp;gt;true&amp;lt;/needFilterPreprocessing&amp;gt;
      &amp;lt;codecName&amp;gt;docid&amp;lt;/codecName&amp;gt;
      &amp;lt;actionBinding&amp;gt;#{restHelper.initContextFromRestRequest}&amp;lt;/actionBinding&amp;gt;
      &amp;lt;documentViewBinding&amp;gt;#{restHelper.documentView}&amp;lt;/documentViewBinding&amp;gt;
      &amp;lt;newDocumentViewBinding&amp;gt;
        #{restHelper.newDocumentView}
      &amp;lt;/newDocumentViewBinding&amp;gt;
      &amp;lt;bindings&amp;gt;
        &amp;lt;binding callGetter="false" name="tabId"&amp;gt;
          #{webActions.currentTabId}
        &amp;lt;/binding&amp;gt;
        &amp;lt;binding callGetter="false" name="subTabId"&amp;gt;
          #{webActions.currentSubTabId}
        &amp;lt;/binding&amp;gt;
        &amp;lt;binding name="tabIds"&amp;gt;#{webActions.currentTabIds}&amp;lt;/binding&amp;gt;
        &amp;lt;binding callGetter="false" name="language"&amp;gt;
          #{restHelper.localeString}
        &amp;lt;/binding&amp;gt;
      &amp;lt;/bindings&amp;gt;
    &amp;lt;/urlPattern&amp;gt;

    &amp;lt;urlPattern name="default" enabled="true"&amp;gt;
      &amp;lt;defaultURLPolicy&amp;gt;false&amp;lt;/defaultURLPolicy&amp;gt;
      &amp;lt;needBaseURL&amp;gt;true&amp;lt;/needBaseURL&amp;gt;
      &amp;lt;needRedirectFilter&amp;gt;true&amp;lt;/needRedirectFilter&amp;gt;
      &amp;lt;needFilterPreprocessing&amp;gt;true&amp;lt;/needFilterPreprocessing&amp;gt;
      &amp;lt;codecName&amp;gt;docpath&amp;lt;/codecName&amp;gt;
      &amp;lt;actionBinding&amp;gt;#{restHelper.initContextFromRestRequest}&amp;lt;/actionBinding&amp;gt;
      &amp;lt;documentViewBinding&amp;gt;#{restHelper.documentView}&amp;lt;/documentViewBinding&amp;gt;
      &amp;lt;newDocumentViewBinding&amp;gt;
        #{restHelper.newDocumentView}
      &amp;lt;/newDocumentViewBinding&amp;gt;
      &amp;lt;bindings&amp;gt;
        &amp;lt;binding name="tabId" callGetter="false"&amp;gt;
          #{webActions.currentTabId}
        &amp;lt;/binding&amp;gt;
        &amp;lt;binding name="subTabId" callGetter="false"&amp;gt;
          #{webActions.currentSubTabId}
        &amp;lt;/binding&amp;gt;
        &amp;lt;binding name="tabIds"&amp;gt;#{webActions.currentTabIds}&amp;lt;/binding&amp;gt;
        &amp;lt;binding name="language" callGetter="false"&amp;gt;
          #{restHelper.localeString}
        &amp;lt;/binding&amp;gt;
        &amp;lt;binding name="mainTabId" callGetter="false"&amp;gt;
          #{webActions.currentTabIds}
        &amp;lt;/binding&amp;gt;
      &amp;lt;/bindings&amp;gt;
    &amp;lt;/urlPattern&amp;gt;

  &amp;lt;/extension&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Note the change of values for the "defaultURLPolicy" property compared to the default configuration at &lt;A href="http://explorer.nuxeo.com/nuxeo/site/distribution/cap-8.3/viewComponent/org.nuxeo.ecm.platform.ui.web.rest.URLService.contrib" target="test_blank"&gt;http://explorer.nuxeo.com/nuxeo/site/distribution/cap-8.3/viewComponent/org.nuxeo.ecm.platform.ui.web.rest.URLService.contrib&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;You can also define your own URL policy, check the documentations at &lt;A href="https://doc.nuxeo.com/x/EIzZ" target="test_blank"&gt;https://doc.nuxeo.com/x/EIzZ&lt;/A&gt; and &lt;A href="https://doc.nuxeo.com/x/hwFu" target="test_blank"&gt;https://doc.nuxeo.com/x/hwFu&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2016 08:26:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-can-i-configure-a-shorter-url-than-nxpath-default-default/m-p/319341#M6342</guid>
      <dc:creator>Anahide_Tchertc</dc:creator>
      <dc:date>2016-08-11T08:26:06Z</dc:date>
    </item>
  </channel>
</rss>

