Skip to content

[BUG]: Open template previews in a new tab #172

Description

@Gautam25Raj

Affected Apps / Packages

Portfolio (apps/portfolio)

Description

When looking at template details in the catalog, clicking "Open full page preview" replaces the current tab. This forces the user to manually click back to return to the template page.

Steps to Reproduce

  1. Go to /templates.
  2. Click "Open full page preview" on any template card.
  3. Note that the preview page opens in the same browser window instead of a new tab.

Expected Behavior

The template preview should open in a new browser tab (_blank) so the user can easily switch back to the details page.

Environment Information

  • OS: All (Windows, macOS, Linux)
  • Browser: Chrome, Safari, Firefox

Relevant Logs

No response

Proposed Fix / Suggestions

Update TemplateCatalog.tsx:

  • Add target="_blank" rel="noopener noreferrer" to the preview Link component.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions