@@ -53,9 +53,9 @@ define(function (require, exports, module) {
5353 }
5454 }
5555
56- function _getProjectPublishedURL ( ) {
56+ function _getProjectPreviewURL ( ) {
5757 let projectName = ProjectManager . getProjectRoot ( ) . name ;
58- return `${ publishURL } /${ userContext } /${ projectName } ` ;
58+ return `${ publishURL } /p/ ${ userContext } /${ projectName } ` ;
5959 }
6060
6161 function _uploadFile ( filePath , blob , resolve , reject ) {
@@ -210,7 +210,7 @@ define(function (require, exports, module) {
210210 DefaultDialogs . DIALOG_ID_INFO ,
211211 "Publish website?" ,
212212 `Quickly preview changes and share your website with others. Phoenix can publish this website for you at
213- <a href="${ _getProjectPublishedURL ( ) } ">${ _getProjectPublishedURL ( ) } </a>.
213+ <a href="${ _getProjectPreviewURL ( ) } ">${ _getProjectPreviewURL ( ) } </a>.
214214 The files you edit and save will be instantly published. Do you wish to publish your website?` ,
215215 [
216216 {
@@ -245,7 +245,7 @@ define(function (require, exports, module) {
245245 }
246246
247247 function _loadPreview ( ) {
248- let projectRootUrl = _getProjectPublishedURL ( ) ;
248+ let projectRootUrl = _getProjectPreviewURL ( ) ;
249249 let currentDocument = DocumentManager . getCurrentDocument ( ) ;
250250 let currentFile = currentDocument ? currentDocument . file : ProjectManager . getSelectedItem ( ) ;
251251 if ( currentFile ) {
0 commit comments