Skip to content

Commit fa82de3

Browse files
akoclaude
andcommitted
feat: support ALTER PAGE SET Url for changing page URLs
The grammar already parsed SET Url = '...' via the generic page-level SET rule but the executor rejected it as unsupported. Added the Url case to applyPageLevelSet — stored as a plain string in BSON. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 77d20f5 commit fa82de3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

mdl/executor/cmd_alter_page.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -569,6 +569,10 @@ func applyPageLevelSet(rawData bson.D, properties map[string]interface{}) error
569569
} else {
570570
setTranslatableText(rawData, "Title", value)
571571
}
572+
case "Url":
573+
// URL is stored as a plain string at the top level
574+
strVal, _ := value.(string)
575+
dSet(rawData, "Url", strVal)
572576
default:
573577
return fmt.Errorf("unsupported page-level property: %s", propName)
574578
}

0 commit comments

Comments
 (0)