Action

Create Redirect

Posted by David Blue, Last update about 2 years ago - Unlisted

UPDATES

about 2 years ago

  • Doubling the WebDAV action steps fixes everything???

Create an HTML redirect page for a specified path with [safe_title] as the of the webpage and the selected text as the target URL. </p> </div> <div class="certification"> <a class='trusted' href='#' title='From trusted community member'><img style="width:24px;height:24px;vertical-align:middle;" src="/assets/trusted-c3f95628f768e0a0ed09961d556a8012d1b1be6ae9e6adede683513eec0df814.svg" /> Trusted member</a> </div> <div style="margin: 2em 0;"> <a class="btn btn-blue" href="drafts5://action?identifier=1yi&data=%7B%22uuid%22:%22969F5D63-1023-421A-BC81-98CF9D289B8E%22,%22steps%22:[%7B%22platforms%22:3,%22data%22:%7B%22promptKey%22:%22prompt%22,%22includeTextField%22:%22true%22,%22includeCancelButton%22:%22true%22,%22promptMessage%22:%22Specify%20path.%20/[input]%22,%22promptTitle%22:%22Set%20Path%22,%22textFieldDefault%22:%22redirect%22,%22promptButtons%22:%22OK%22%7D,%22type%22:%22prompt%22,%22isEnabled%22:true,%22uuid%22:%22C47675AD-D944-4BB3-8350-03C986CE6AA7%22%7D,%7B%22platforms%22:3,%22data%22:%7B%22fileNameTemplate%22:%22index.html%22,%22folderTemplate%22:%22[[prompt_text]]%22,%22identifier%22:%22NeoCities%22,%22template%22:%22%5Cu003c!DOCTYPE%20html%5Cu003e%5Cn%5Cu003chtml%5Cu003e%5Cn%C2%A0%C2%A0%20%5Cu003chead%5Cu003e%5Cn%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%20%5Cu003ctitle%5Cu003e[[safe_title]]%5Cu003c/title%5Cu003e%5Cn%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%20%5Cu003cmeta%20http-equiv%20=%20%5C%22refresh%5C%22%20content%20=%20%5C%220;%20url%20=%20[[selection_only]]%5C%22%20/%5Cu003e%5Cn%C2%A0%C2%A0%20%5Cu003c/head%5Cu003e%5Cn%C2%A0%C2%A0%20%5Cu003cbody%5Cu003e%5Cn%C2%A0%C2%A0%20%5Cu003c/body%5Cu003e%5Cn%5Cu003c/html%5Cu003e%22,%22writeType%22:%22replace%22%7D,%22type%22:%22webDAV%22,%22isEnabled%22:true,%22uuid%22:%2248F92EB5-2F47-4CC4-8BB2-2FB2C05F74B7%22%7D,%7B%22platforms%22:3,%22data%22:%7B%22fileNameTemplate%22:%22index.html%22,%22folderTemplate%22:%22[[prompt_text]]%22,%22identifier%22:%22NeoCities%22,%22template%22:%22%5Cu003c!DOCTYPE%20html%5Cu003e%5Cn%5Cu003chtml%5Cu003e%5Cn%C2%A0%C2%A0%20%5Cu003chead%5Cu003e%5Cn%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%20%5Cu003ctitle%5Cu003e[[safe_title]]%5Cu003c/title%5Cu003e%5Cn%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%20%5Cu003cmeta%20http-equiv%20=%20%5C%22refresh%5C%22%20content%20=%20%5C%220;%20url%20=%20[[selection_only]]%5C%22%20/%5Cu003e%5Cn%C2%A0%C2%A0%20%5Cu003c/head%5Cu003e%5Cn%C2%A0%C2%A0%20%5Cu003cbody%5Cu003e%5Cn%C2%A0%C2%A0%20%5Cu003c/body%5Cu003e%5Cn%5Cu003c/html%5Cu003e%22,%22writeType%22:%22replace%22%7D,%22type%22:%22webDAV%22,%22isEnabled%22:true,%22uuid%22:%22DEC11A84-F268-47CB-BE19-710DA3941327%22%7D,%7B%22platforms%22:3,%22data%22:%7B%22template%22:%22%5Cnhttps://davidblue.wtf/[[prompt_text]]%22%7D,%22type%22:%22insertText%22,%22isEnabled%22:true,%22uuid%22:%22DC87D8DA-D5FC-4121-829D-492783FC3026%22%7D],%22backingPlatforms%22:3,%22shortName%22:%22%22,%22shouldConfirm%22:false,%22disposition%22:3,%22keyCommand%22:%7B%22optionKey%22:true,%22input%22:%22R%22,%22controlKey%22:false,%22commandKey%22:true,%22type%22:%22action%22,%22discoverabilityTitle%22:%22Create%20Redirect%22,%22shiftKey%22:true%7D,%22logLevel%22:2,%22groupDisposition%22:0,%22notificationType%22:2,%22tintColor%22:%22yellow%22,%22actionDescription%22:%22Create%20an%20HTML%20redirect%20page%20for%20a%20specified%20path%20with%20[safe_title]%20as%20the%20%5Cu003ctitle%5Cu003e%20of%20the%20webpage%20and%20the%20selected%20text%20as%20the%20target%20URL.%22,%22keyUseIcon%22:false,%22icon%22:%22action_redo%22,%22visibility%22:480,%22backingIsSeparator%22:false,%22groupUUID%22:%229E39E0E0-8E43-4210-B269-9BF1CF9EEEA5%22,%22assignTags%22:[],%22name%22:%22Create%20Redirect%22%7D">Install</a> </div> <div> <h4>Steps</h4> <ul class='steps'> <li> <div class='step'><h3>prompt</h3><table class='action-detail'><tr><td class='cell-label'>promptKey</td><td class='value'><pre>prompt</pre></td></tr><tr><td class='cell-label'>promptTitle</td><td class='value'><pre>Set Path</pre></td></tr><tr><td class='cell-label'>promptMessage</td><td class='value'><pre>Specify path. /[input]</pre></td></tr><tr><td class='cell-label'>promptButtons</td><td class='value'><pre>OK</pre></td></tr><tr><td class='cell-label'>includeTextField</td><td class='value'><pre>true</pre></td></tr><tr><td class='cell-label'>textFieldDefault</td><td class='value'><pre>redirect</pre></td></tr><tr><td class='cell-label'>includeCancelButton</td><td class='value'><pre>true</pre></td></tr></table></div> </li> <li> <div class='step'><h3>webDAV</h3><table class='action-detail'><tr><td class='cell-label'>fileNameTemplate</td><td class='value'><pre>index.html</pre></td></tr><tr><td class='cell-label'>folderTemplate</td><td class='value'><pre>[[prompt_text]]</pre></td></tr><tr><td class='cell-label'>template</td><td class='value'><pre><!DOCTYPE html> <html>    <head>       <title>[[safe_title]]                writeType

replace
  • webDAV

    fileNameTemplate
    index.html
    folderTemplate
    [[prompt_text]]
    template
    
    
       
          [[safe_title]]
          
       
       
       
    
    writeType
    replace
  • insertText

    template
    https://davidblue.wtf/[[prompt_text]]
  • Options

    • After Success Default
      Notification Info
      Log Level Info
    Items available in the Drafts Directory are uploaded by community members. Use appropriate caution reviewing downloaded items before use.