<?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 redirect to source's parent node after move in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/redirect-to-source-s-parent-node-after-move/m-p/42046#M17640</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all.&lt;/P&gt;&lt;P&gt;By default, at document details page, after executing the document action "Move to", the user is being redirected to the node's new target place (the window.location.reload(); line).&lt;/P&gt;&lt;P&gt;we would like the user to stay at the parent folder of the document's source place, so we replaced&lt;/P&gt;&lt;P&gt;window.location.reload();&lt;BR /&gt;with&lt;/P&gt;&lt;P&gt;Alfresco.util.Ajax.jsonGet({&lt;BR /&gt; url: Alfresco.constants.PROXY_URI + "api/sites/shareUrl?nodeRef=" + encodeURIComponent(this.options.parentId),&lt;BR /&gt; successCallback:&lt;BR /&gt; {&lt;BR /&gt; fn: function(response)&lt;BR /&gt; {&lt;BR /&gt; var obj = Alfresco.util.parseJSON(response.serverResponse.responseText);&lt;BR /&gt; window.location.replace(obj.url);&lt;BR /&gt; }&lt;BR /&gt; },&lt;BR /&gt; failureCallback:&lt;BR /&gt; {&lt;BR /&gt; fn: function(response)&lt;BR /&gt; {&lt;BR /&gt; window.location.reload();&lt;BR /&gt; }&lt;BR /&gt; }&lt;BR /&gt;});&lt;BR /&gt;I am using sdk 2.0, so if I place the the updated copy-move-to.js to src\main\amp\web\modules\documentlibrary\copy-move-to.js, would it be a good practice?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Meanwhile, the '/alfresco/s/api/sites/shareUrl?nodeRef=' responds with failure when the file is under a user's home. So in this case we keep the default functionality. how could i get the url in a user's home (sub)folder give its noderef?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Jan 2019 12:34:03 GMT</pubDate>
    <dc:creator>mtsiak</dc:creator>
    <dc:date>2019-01-29T12:34:03Z</dc:date>
    <item>
      <title>redirect to source's parent node after move</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/redirect-to-source-s-parent-node-after-move/m-p/42046#M17640</link>
      <description>Hi all.By default, at document details page, after executing the document action "Move to", the user is being redirected to the node's new target place (the window.location.reload(); line).we would like the user to stay at the parent folder of the document's source place, so we replacedwindow.locati</description>
      <pubDate>Tue, 29 Jan 2019 12:34:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/redirect-to-source-s-parent-node-after-move/m-p/42046#M17640</guid>
      <dc:creator>mtsiak</dc:creator>
      <dc:date>2019-01-29T12:34:03Z</dc:date>
    </item>
  </channel>
</rss>

