Skip to content
GitLab
    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
    Projects Groups Topics Snippets
  • Register
  • Sign in
  • stacks stacks
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 173
    • Issues 173
    • List
    • Boards
    • Service Desk
    • Milestones
  • Wiki
    • Wiki
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • YourHeadYourHead
  • stacksstacks
  • Issues
  • #564
Closed
Open
Issue created Aug 27, 2020 by Joe Workman@joeworkman

%baseURL% inside of a partial

The steps in this report use Total CMS Admin Core stack. This stack uses the %baseURL% macro inside of an each scoped JS template.

  1. Create a new project w/ Stacks page.
  2. Enter a valid URL into the website URL in the project General Settings.
  3. Add Total CMS admin core stack to the page.
  4. Make the stack a partial.
  5. Preview the page, you should see no content.
  6. Save the project to disk and close project.
  7. Reopen the project.
  8. Preview the page you will see an error about the website settings not being set properly.

The reason is that when we reopen the project, the %baseURL% macro returns a nothing.

You can look at the following line inside of source of the published JS within preview...

stacks.totalcms.baseurl  = '%baseURL%/'.replace(/\/\/$/,'/');

You can get Total CMS here... https://weavers.link/total-cms-stacks

Assignee
Assign to
Time tracking