we switch from docid to docpath as the default way to show the url (user finds 
it easier and nicer). However it seems docpath is not compatible with your 
workspace name. You can switch back to docid overriding this contribution. You 
need to write a new contribution that would require that one but would use      
 <defaultURLPolicy>true</defaultURLPolicy> for  <urlPattern name="id" (and 
false for default)

<?xml version="1.0"?>
<component name="org.nuxeo.ecm.platform.ui.web.rest.URLService.contrib">
  <documentation>
    Contributions for basic rest navigation through the application.

    @version 1.0
    @author Anahide Tchertchian ([email protected])
  </documentation>

  <extension target="org.nuxeo.ecm.platform.ui.web.rest.URLService"
      point="urlpatterns">

    <documentation>
      Basic url pattern using the doc id codec: it places the application in the
      document context described by the url and sets a current tab.

      Additional url pattern using the doc path codec.
    </documentation>

    <urlPattern name="id" enabled="true">
      <defaultURLPolicy>false</defaultURLPolicy>
      <needBaseURL>true</needBaseURL>
      <needRedirectFilter>true</needRedirectFilter>
      <needFilterPreprocessing>true</needFilterPreprocessing>
      <codecName>docid</codecName>
      <actionBinding>#{restHelper.initContextFromRestRequest}</actionBinding>
      <documentViewBinding>#{restHelper.documentView}</documentViewBinding>
      
<newDocumentViewBinding>#{restHelper.newDocumentView}</newDocumentViewBinding>
      <bindings>
        <binding name="tabId">#{webActions.currentTabId}</binding>
        <binding name="subTabId">#{webActions.currentSubTabId}</binding>
      </bindings>
    </urlPattern>

    <urlPattern name="default" enabled="true">
      <defaultURLPolicy>true</defaultURLPolicy>
      <needBaseURL>true</needBaseURL>
      <needRedirectFilter>true</needRedirectFilter>
      <needFilterPreprocessing>true</needFilterPreprocessing>
      <codecName>docpath</codecName>
      <actionBinding>#{restHelper.initContextFromRestRequest}</actionBinding>
      <documentViewBinding>#{restHelper.documentView}</documentViewBinding>
      
<newDocumentViewBinding>#{restHelper.newDocumentView}</newDocumentViewBinding>
      <bindings>
        <binding name="tabId">#{webActions.currentTabId}</binding>
        <binding name="subTabId">#{webActions.currentSubTabId}</binding>
      </bindings>
    </urlPattern>

  </extension>

</component>
--
Posted by "arussel" at Nuxeo Discussions <http://nuxeo.org/discussions>
View the complete thread: 
<http://www.nuxeo.org/discussions/thread.jspa?threadID=3038#8964>
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm

Reply via email to