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

  • SEARCH
  • Home
  • 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 8278177
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T08:55:12+00:00 2026-06-08T08:55:12+00:00

In my web app if a user is logged in and clicks on the

  • 0

In my web app if a user is logged in and clicks on the logo, instead of going to the entry page as an anonymous user, I would load their member homepage URL instead.
How it works is when a user joins or logs in, I generate this route $this->generateUrl('member_page'), array('member' => $member->getName()));
and my route is configured as so,

member_page: pattern: /member/{member}/
defaults: { _controller: HomeBundle:Default:member }

and it generates this url:

http://website.com/member/John+joe/

The problem is, when I recall the route it just shows this url

http://website.com/member/

I have tried calling a new action and using $request->getURI() but it does not maintain the dynamic get parameters.

I’m trying to avoid a call to the DB to get the user name each time the click the logo.
Any help would be great, thanks!

  • 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-08T08:55:15+00:00Added an answer on June 8, 2026 at 8:55 am

    A few weeks ago, I had to do something quite similar and inspired myself from the PagerFantaBundle. Have you tried this code in your controller:

    $request = $this->getRequest();
    return $this->redirect($this->generateUrl($request->get('_route'), $request->query->all()));
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my app I have to load a web page in UIWebView where user
I have a user profile page on my web app which has contact information.
Problem Statement - Would like to know if particular web app user is active
I'm developing web app that user can save his/her work to server. The data
I am using Flexigrid in my web App.When user add or delete a record,the
I have a Flash web app which displays user submitted PNG files. Files are
I am putting together a fairly simple web app that uses user inputted data
I've created a simply web radio streaming app, and on of my app user
I have a web app which lets the user select the excel spreadsheet and
This is a web app that works when user searches for an item to

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.