Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7912141
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T13:31:00+00:00 2026-06-03T13:31:00+00:00

I have 2 different content scenarios: show a post with a dynamic url for

  • 0

I have 2 different content scenarios:

  1. show a post with a dynamic url for instance:
    http://xyz.com/my-post-title-here
    http://xyz.com/2012/04/15/whatever
    .. and so on basically it can be anything

  2. Show a predefined page for instance
    http://xyz.com/contact
    which could also be:
    http://xyz.com/contact/contact-form <– anything after /contact is an action to perform on the page.

My router conf looks like this,

{
""                 : "pageRoute" // homepage
"*post"            : "postRoute" //<--catchall for dynamic urls
"about*action"     : "pageRoute" // these
"contact*action"   : "pageRoute" // are
"gallery*action"   : "pageRoute" // all
"home*action"      : "pageRoute" // predefined
}

PROBLEM
Only problem is that ONLY the postRoute method ever seems to get fired?

i’ve also tried:
“contact/:action”
“contact/*action”

but no luck.
I’ve read the documentation but I can’t see my issue.

EDIT:ANSWER make the dynamic postroute the last in the config list thanks to @asawyer below

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T13:31:03+00:00Added an answer on June 3, 2026 at 1:31 pm

    Make the dynamic route the last one in the list.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have several different content type nodes (videos, image galleries, stories...) that I would
We have a content delivery system that delivers many different content types to devices.
I have some internal link which shows different content. Everytime I click the internal
I would like to have my canvas page on facebook display different content for
I have a HTML table. Each cell has content of different length. For this
Do both these files have the same content? Or do they provide different functionality
I have an iframe. I am setting the content of the iframe (different domain
I have a page with 10 different div contents in it. Based on my
Is it possible to have a method return different values depending on context (how
I have different php output in jQuery-based tabs. This output is formed from database

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.