Link to pages with same name. Which will skuid choose?

  • 1
  • Question
  • Updated 2 years ago
  • Answered
What kind of sort order does skuid use when finding a page based on its name?

Suppose I have pages with the same name, in different modules:
  • MyCoolPage in AwesomeModule
  • MyCoolPage in ModuleOfAwesomeness
If I run a url redirect with this:
/apex/skuid--ui?page=MyCoolPage

Which page will skuid choose? Is that something I can predict based on the properties of the page?
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb

Posted 2 years ago

  • 1
Photo of Ben Hubbard

Ben Hubbard, Employee

  • 12,490 Points 10k badge 2x thumb
I think we support the module parameter.

/apex/skuid--ui?page=MyCoolPage&module=AwesomeModule
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
Yes. I understand the module parameter. I'd like to know if there is predicatable behavior without the module parameter.
Photo of Ben Hubbard

Ben Hubbard, Employee

  • 12,490 Points 10k badge 2x thumb
I believe it's this...

1st Priority: Pages with no module.
2nd Priority: The order of your module picklist field on the skuid__Page__c object. Where picklist entries lowest on the list would be given priority over entries higher on the list.
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
The last shall be first.

Thanks, Ben!